Sha256: 307e0ddd4a8aaa941cd1c1561f4c3538e147241927b5fc4ec95a34699f52f7bb

Contents?: true

Size: 736 Bytes

Versions: 15

Compression:

Stored size: 736 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
          ]

          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

15 entries across 15 versions & 1 rubygems

Version Path
shoulda-matchers-4.4.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.4.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.3.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.2.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.1.2 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.1.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.1.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.0.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-3.1.3 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-4.0.0.rc1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-3.1.2 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-3.1.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-3.1.0 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-3.0.1 lib/shoulda/matchers/integrations/libraries/rails.rb
shoulda-matchers-3.0.0 lib/shoulda/matchers/integrations/libraries/rails.rb