class ActiveModelTest::MachineByDefaultTest

Public Instance Methods

setup() click to toggle source
# File test/unit/integrations/active_model_test.rb, line 108
def setup
  @model = new_model
  @machine = StateMachine::Machine.new(@model, :integration => :active_model)
end
test_should_not_have_action() click to toggle source
# File test/unit/integrations/active_model_test.rb, line 113
def test_should_not_have_action
  assert_nil @machine.action
end
test_should_not_have_any_after_callbacks() click to toggle source
# File test/unit/integrations/active_model_test.rb, line 125
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/active_model_test.rb, line 121
def test_should_not_have_any_before_callbacks
  assert_equal 0, @machine.callbacks[:before].size
end
test_should_use_transactions() click to toggle source
# File test/unit/integrations/active_model_test.rb, line 117
def test_should_use_transactions
  assert_equal true, @machine.use_transactions
end