class MachineWithEventsWithCustomHumanNamesTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/machine_test.rb, line 2308 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass) @event = @machine.event(:ignite, :human_name => 'start') end
test_should_allow_human_state_name_lookup()
click to toggle source
# File test/unit/machine_test.rb, line 2318 def test_should_allow_human_state_name_lookup assert_equal 'start', @klass.human_state_event_name(:ignite) end
test_should_use_custom_human_name()
click to toggle source
# File test/unit/machine_test.rb, line 2314 def test_should_use_custom_human_name assert_equal 'start', @event.human_name end