class MachineWithoutIntegrationTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/machine_test.rb, line 473 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass) @object = @klass.new end
test_invalidation_should_do_nothing()
click to toggle source
# File test/unit/machine_test.rb, line 488 def test_invalidation_should_do_nothing assert_nil @machine.invalidate(@object, :state, :invalid_transition, [[:event, 'park']]) end
test_reset_should_do_nothing()
click to toggle source
# File test/unit/machine_test.rb, line 492 def test_reset_should_do_nothing assert_nil @machine.reset(@object) end
test_transaction_should_yield()
click to toggle source
# File test/unit/machine_test.rb, line 479 def test_transaction_should_yield @yielded = false @machine.within_transaction(@object) do @yielded = true end assert @yielded end