Sha256: 788cf8a9721630226303b7ff8b90bea034819c60d8e4c83b9d1df3a22e94bd1d
Contents?: true
Size: 905 Bytes
Versions: 3
Compression:
Stored size: 905 Bytes
Contents
require_relative 'test_helper' class IntegrationTest < BaseTestCase def test_should_have_an_integration_name assert_equal :active_record, StateMachines::Integrations::ActiveRecord.integration_name end def test_should_be_before_activemodel integrations = StateMachines::Integrations.list.to_a assert StateMachines::Integrations::ActiveRecord, integrations.first assert StateMachines::Integrations::ActiveModel, integrations.last end def test_should_match_if_class_inherits_from_active_record assert StateMachines::Integrations::ActiveRecord.matches?(new_model) end def test_should_not_match_if_class_does_not_inherit_from_active_record refute StateMachines::Integrations::ActiveRecord.matches?(Class.new) end def test_should_have_defaults assert_equal({action: :save, use_transactions: true}, StateMachines::Integrations::ActiveRecord.defaults) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
state_machines-activerecord-0.9.0 | test/integration_test.rb |
state_machines-activerecord-0.8.0 | test/integration_test.rb |
state_machines-activerecord-0.6.0 | test/integration_test.rb |