Sha256: fd48be0f176d84a51e8723ed2e5c137c3c9dd08a0ff6192172372c478cdf8192

Contents?: true

Size: 610 Bytes

Versions: 28

Compression:

Stored size: 610 Bytes

Contents

module Shoulda
  module Matchers
    module Integrations
      module Libraries
        # @private
        class ActiveRecord
          Integrations.register_library(self, :active_record)

          include Integrations::Inclusion
          include Integrations::Rails

          def integrate_with(test_framework)
            test_framework.include(matchers_module, type: :model)
            include_into(ActiveSupport::TestCase, matchers_module)
          end

          private

          def matchers_module
            Shoulda::Matchers::ActiveRecord
          end
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
shoulda-matchers-6.4.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-6.3.1 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-6.3.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-6.2.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-6.1.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-6.0.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-5.3.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-5.2.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-5.1.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-5.0.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-5.0.0.rc1 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.5.1 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.5.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.4.1 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.4.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.3.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.2.0 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.1.2 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.1.1 lib/shoulda/matchers/integrations/libraries/active_record.rb
shoulda-matchers-4.1.0 lib/shoulda/matchers/integrations/libraries/active_record.rb