class StateNotFinalTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/state_test.rb, line 431 def setup @machine = StateMachine::Machine.new(Class.new) @machine.states << @state = StateMachine::State.new(@machine, :parked) end
test_should_not_be_final_with_outgoing_all_transitions()
click to toggle source
# File test/unit/state_test.rb, line 444 def test_should_not_be_final_with_outgoing_all_transitions @machine.event :ignite do transition all => :idling end assert !@state.final? end
test_should_not_be_final_with_outgoing_blacklist_transitions()
click to toggle source
# File test/unit/state_test.rb, line 452 def test_should_not_be_final_with_outgoing_blacklist_transitions @machine.event :ignite do transition all - :first_gear => :idling end assert !@state.final? end
test_should_not_be_final_with_outgoing_whitelist_transitions()
click to toggle source
# File test/unit/state_test.rb, line 436 def test_should_not_be_final_with_outgoing_whitelist_transitions @machine.event :ignite do transition :parked => :idling end assert !@state.final? end