class DataMapperTest::MachineWithEventsTest

Public Instance Methods

setup() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 286
def setup
  @resource = new_resource
  @machine = StateMachine::Machine.new(@resource)
  @machine.event :shift_up
end
test_should_humanize_name() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 292
def test_should_humanize_name
  assert_equal 'shift up', @machine.event(:shift_up).human_name
end