class MongoidTest::IntegrationTest

Public Instance Methods

test_should_be_available() click to toggle source
# File test/unit/integrations/mongoid_test.rb, line 43
def test_should_be_available
  assert StateMachine::Integrations::Mongoid.available?
end
test_should_have_a_locale_path() click to toggle source
# File test/unit/integrations/mongoid_test.rb, line 59
def test_should_have_a_locale_path
  assert_not_nil StateMachine::Integrations::Mongoid.locale_path
end
test_should_have_an_integration_name() click to toggle source
# File test/unit/integrations/mongoid_test.rb, line 39
def test_should_have_an_integration_name
  assert_equal :mongoid, StateMachine::Integrations::Mongoid.integration_name
end
test_should_have_defaults() click to toggle source
# File test/unit/integrations/mongoid_test.rb, line 55
def test_should_have_defaults
  assert_equal e = {:action => :save}, StateMachine::Integrations::Mongoid.defaults
end
test_should_match_if_class_includes_mongoid() click to toggle source
# File test/unit/integrations/mongoid_test.rb, line 47
def test_should_match_if_class_includes_mongoid
  assert StateMachine::Integrations::Mongoid.matches?(new_model)
end
test_should_not_match_if_class_does_not_include_mongoid() click to toggle source
# File test/unit/integrations/mongoid_test.rb, line 51
def test_should_not_match_if_class_does_not_include_mongoid
  assert !StateMachine::Integrations::Mongoid.matches?(Class.new)
end