updated manifest, added behavior tests
[god.git] / test / test_behavior.rb
blobdc0f3915e2a4923f2fbf4ad3ebec7074c51efa6a
1 require 'helper'
3 class TestBehavior < Test::Unit::TestCase
4   def test_generate_should_return_an_object_corresponding_to_the_given_type
5     assert_equal Behaviors::FakeBehavior, Behavior.generate(:fake_behavior).class
6   end
7   
8   def test_generate_should_raise_on_invalid_type
9     assert_raise NoSuchBehaviorError do
10       Behavior.generate(:foo)
11     end
12   end
13 end