Sha256: 223ed340c1433e470b29c42ec1241c292a3e7892a26431d1e005a17252a21563

Contents?: true

Size: 953 Bytes

Versions: 7349

Compression:

Stored size: 953 Bytes

Contents

require 'test/unit/assertions'

module RSpec
  module Core
    # @private
    module TestUnitAssertionsAdapter
      include ::Test::Unit::Assertions

      # If using test/unit from Ruby core with Ruby 1.9+, it includes
      # MiniTest::Assertions by default. Note the upcasing of 'Test'.
      #
      # If the test/unit gem is being loaded, it will not include any minitest
      # assertions.
      #
      # Only if Minitest 5.x is included / loaded do we need to worry about
      # adding a shim for the new updates. Thus instead of checking on the
      # RUBY_VERSION we need to check ancestors.
      begin
        # MiniTest is 4.x.
        # Minitest is 5.x.
        if ancestors.include?(::Minitest::Assertions)
          require 'rspec/core/minitest_assertions_adapter'
          include ::RSpec::Core::MinitestAssertionsAdapter
        end
      rescue NameError
        # No-op. Minitest 5.x was not loaded.
      end
    end
  end
end

Version data entries

7,349 entries across 7,267 versions & 127 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/rspec-core-3.11.0/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb
cybrid_api_bank_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/test_unit_assertions_adapter.rb