class DataMapperTest::IntegrationTest

Public Instance Methods

test_should_be_available() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 64
def test_should_be_available
  assert StateMachine::Integrations::DataMapper.available?
end
test_should_have_an_integration_name() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 60
def test_should_have_an_integration_name
  assert_equal :data_mapper, StateMachine::Integrations::DataMapper.integration_name
end
test_should_have_defaults() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 76
def test_should_have_defaults
  assert_equal e = {:action => :save, :use_transactions => false}, StateMachine::Integrations::DataMapper.defaults
end
test_should_match_if_class_includes_data_mapper() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 68
def test_should_match_if_class_includes_data_mapper
  assert StateMachine::Integrations::DataMapper.matches?(new_resource)
end
test_should_not_have_a_locale_path() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 80
def test_should_not_have_a_locale_path
  assert_nil StateMachine::Integrations::DataMapper.locale_path
end
test_should_not_match_if_class_does_not_include_data_mapper() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 72
def test_should_not_match_if_class_does_not_include_data_mapper
  assert !StateMachine::Integrations::DataMapper.matches?(Class.new)
end