class ActiveModelTest::IntegrationTest
Public Instance Methods
test_should_be_available()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 78 def test_should_be_available assert StateMachine::Integrations::ActiveModel.available? end
test_should_have_a_locale_path()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 102 def test_should_have_a_locale_path assert_not_nil StateMachine::Integrations::ActiveModel.locale_path end
test_should_have_an_integration_name()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 74 def test_should_have_an_integration_name assert_equal :active_model, StateMachine::Integrations::ActiveModel.integration_name end
test_should_have_no_defaults()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 98 def test_should_have_no_defaults assert_equal e = {}, StateMachine::Integrations::ActiveModel.defaults end
test_should_match_if_class_includes_dirty_feature()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 82 def test_should_match_if_class_includes_dirty_feature assert StateMachine::Integrations::ActiveModel.matches?(new_model { include ActiveModel::Dirty }) end
test_should_match_if_class_includes_observing_feature()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 86 def test_should_match_if_class_includes_observing_feature assert StateMachine::Integrations::ActiveModel.matches?(new_model { include ActiveModel::Observing }) end
test_should_match_if_class_includes_validations_feature()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 90 def test_should_match_if_class_includes_validations_feature assert StateMachine::Integrations::ActiveModel.matches?(new_model { include ActiveModel::Validations }) end
test_should_not_match_if_class_does_not_include_active_model_features()
click to toggle source
# File test/unit/integrations/active_model_test.rb, line 94 def test_should_not_match_if_class_does_not_include_active_model_features assert !StateMachine::Integrations::ActiveModel.matches?(new_model) end