class EventCollectionWithoutMachineActionTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/event_collection_test.rb, line 153 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass, :initial => :parked) @events = StateMachine::EventCollection.new(@machine) @events << StateMachine::Event.new(@machine, :ignite) @machine.events.concat(@events) @object = @klass.new end
test_should_not_have_an_attribute_transition()
click to toggle source
# File test/unit/event_collection_test.rb, line 163 def test_should_not_have_an_attribute_transition assert_nil @events.attribute_transition_for(@object) end