Simplified config file (removing meddle construct)
[god.git] / test / test_behavior.rb
blobf3b93eb1b1674fca5c0ce10c80c5119f33011270
1 require File.dirname(__FILE__) + '/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, nil).class
6   end
7   
8   def test_generate_should_raise_on_invalid_type
9     assert_raise NoSuchBehaviorError do
10       Behavior.generate(:foo, nil)
11     end
12   end
13 end