Sha256: b5405ee3a65d2de698b68ee815f5e346b292a7c1f08bff39d1f386b050f6ecb9
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class InvalidEventTest < Test::Unit::TestCase def setup @object = Object.new @invalid_event = EnumStateMachine::InvalidEvent.new(@object, :invalid) end def test_should_have_an_object assert_equal @object, @invalid_event.object end def test_should_have_an_event assert_equal :invalid, @invalid_event.event end def test_should_generate_a_message assert_equal ':invalid is an unknown state machine event', @invalid_event.message end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enum_state_machine-0.1.1 | test/unit/invalid_event_test.rb |
enum_state_machine-0.1.0 | test/unit/invalid_event_test.rb |
enum_state_machine-0.0.1 | test/unit/invalid_event_test.rb |