Sha256: be834282eb7d7f54f08aa7afec4ab6d9f5269e75beaf453a6ab601d64055b100

Contents?: true

Size: 1.07 KB

Versions: 28

Compression:

Stored size: 1.07 KB

Contents

module Shoulda
  module Matchers
    # @private
    module Integrations
      class << self
        def register_library(klass, name)
          library_registry.register(klass, name)
        end

        def find_library!(name)
          library_registry.find!(name)
        end

        def register_test_framework(klass, name)
          test_framework_registry.register(klass, name)
        end

        def find_test_framework!(name)
          test_framework_registry.find!(name)
        end

        private

        def library_registry
          @_library_registry ||= Registry.new
        end

        def test_framework_registry
          @_test_framework_registry ||= Registry.new
        end
      end
    end
  end
end

require 'shoulda/matchers/integrations/configuration'
require 'shoulda/matchers/integrations/configuration_error'
require 'shoulda/matchers/integrations/inclusion'
require 'shoulda/matchers/integrations/rails'
require 'shoulda/matchers/integrations/registry'

require 'shoulda/matchers/integrations/libraries'
require 'shoulda/matchers/integrations/test_frameworks'

Version data entries

28 entries across 28 versions & 1 rubygems

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