Sha256: 371599c92b25fee07189c199dbf5a3705b98b160035b4fa0407ca6788209968f
Contents?: true
Size: 901 Bytes
Versions: 18
Compression:
Stored size: 901 Bytes
Contents
require_relative 'test_helper' class IntegrationTest < BaseTestCase def test_should_be_registered assert_includes StateMachines::Integrations.list, StateMachines::Integrations::ActiveModel end def test_should_register_one_integration assert_equal 1, StateMachines::Integrations.list.size end def test_should_have_an_integration_name assert_equal :active_model, StateMachines::Integrations::ActiveModel.integration_name end def test_should_match_if_class_includes_validations_feature assert StateMachines::Integrations::ActiveModel.matches?(new_model { include ActiveModel::Validations }) end def test_should_not_match_if_class_does_not_include_active_model_features refute StateMachines::Integrations::ActiveModel.matches?(new_model) end def test_should_have_no_defaults assert_equal({}, StateMachines::Integrations::ActiveModel.defaults) end end
Version data entries
18 entries across 18 versions & 2 rubygems