class EventWithHumanNameTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/event_test.rb, line 95 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass) @machine.events << @event = StateMachine::Event.new(@machine, :ignite, :human_name => 'start') end
test_should_use_custom_human_name()
click to toggle source
# File test/unit/event_test.rb, line 101 def test_should_use_custom_human_name assert_equal 'start', @event.human_name end