Sha256: 286330a1934d1730c51c56582a70399d44239c3e2a78b0995fcc02b28a61a1e8

Contents?: true

Size: 744 Bytes

Versions: 13

Compression:

Stored size: 744 Bytes

Contents

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

          include Integrations::Rails

          SUB_LIBRARIES = [
            :active_model,
            :active_record,
            :action_controller,
            :routing,
          ].freeze

          def integrate_with(test_framework)
            Shoulda::Matchers.assertion_exception_class =
              ActiveSupport::TestCase::Assertion

            SUB_LIBRARIES.each do |name|
              library = Integrations.find_library!(name)
              library.integrate_with(test_framework)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shoulda-matchers-6.4.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-6.3.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-6.3.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-6.2.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-6.1.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-6.0.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-5.3.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-5.2.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-5.1.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-5.0.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-5.0.0.rc1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.5.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.5.0 lib/shoulda/matchers/integrations/libraries/rails.rb