class MongoMapperTest::IntegrationTest

Public Instance Methods

test_should_be_available() click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 42
def test_should_be_available
  assert StateMachine::Integrations::MongoMapper.available?
end
test_should_have_a_locale_path() click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 58
def test_should_have_a_locale_path
  assert_not_nil StateMachine::Integrations::MongoMapper.locale_path
end
test_should_have_an_integration_name() click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 38
def test_should_have_an_integration_name
  assert_equal :mongo_mapper, StateMachine::Integrations::MongoMapper.integration_name
end
test_should_have_defaults() click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 54
def test_should_have_defaults
  assert_equal e = {:action => :save}, StateMachine::Integrations::MongoMapper.defaults
end
test_should_match_if_class_includes_mongo_mapper() click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 46
def test_should_match_if_class_includes_mongo_mapper
  assert StateMachine::Integrations::MongoMapper.matches?(new_model)
end
test_should_not_match_if_class_does_not_include_mongo_mapper() click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 50
def test_should_not_match_if_class_does_not_include_mongo_mapper
  assert !StateMachine::Integrations::MongoMapper.matches?(Class.new)
end