Sha256: 9662ab3ec98904c872d445beab525df55afe3facde54ccb6b66f3e597fe66c29

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestBehavior < Test::Unit::TestCase
  def test_generate_should_return_an_object_corresponding_to_the_given_type
    assert_equal Behaviors::FakeBehavior, Behavior.generate(:fake_behavior).class
  end
  
  def test_generate_should_raise_on_invalid_type
    assert_raise NoSuchBehaviorError do
      Behavior.generate(:foo)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
god-0.1.0 test/test_behavior.rb
god-0.2.0 test/test_behavior.rb