class MachineWithActionUndefinedTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/machine_test.rb, line 629 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass, :action => :save) @object = @klass.new end
test_should_define_an_event_attribute_reader()
click to toggle source
# File test/unit/machine_test.rb, line 635 def test_should_define_an_event_attribute_reader assert @object.respond_to?(:state_event) end
test_should_define_an_event_attribute_writer()
click to toggle source
# File test/unit/machine_test.rb, line 639 def test_should_define_an_event_attribute_writer assert @object.respond_to?(:state_event=) end
test_should_define_an_event_transition_attribute_reader()
click to toggle source
# File test/unit/machine_test.rb, line 643 def test_should_define_an_event_transition_attribute_reader assert @object.respond_to?(:state_event_transition) end
test_should_define_an_event_transition_attribute_writer()
click to toggle source
# File test/unit/machine_test.rb, line 647 def test_should_define_an_event_transition_attribute_writer assert @object.respond_to?(:state_event_transition=) end
test_should_not_define_action()
click to toggle source
# File test/unit/machine_test.rb, line 651 def test_should_not_define_action assert !@object.respond_to?(:save) end
test_should_not_mark_action_hook_as_defined()
click to toggle source
# File test/unit/machine_test.rb, line 655 def test_should_not_mark_action_hook_as_defined assert !@machine.action_hook? end