class DataMapperTest::MachineByDefaultTest

Public Instance Methods

setup() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 111
def setup
  @resource = new_resource
  @machine = StateMachine::Machine.new(@resource)
end
test_should_not_have_any_after_callbacks() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 128
def test_should_not_have_any_after_callbacks
  assert_equal 0, @machine.callbacks[:after].size
end
test_should_not_have_any_before_callbacks() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 124
def test_should_not_have_any_before_callbacks
  assert_equal 0, @machine.callbacks[:before].size
end
test_should_not_use_transactions() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 120
def test_should_not_use_transactions
  assert_equal false, @machine.use_transactions
end
test_should_use_save_as_action() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 116
def test_should_use_save_as_action
  assert_equal :save, @machine.action
end