Sha256: 670d9e5d2a62c51055818b7ccfee6f52fa42c210514afd007ef3c5cddfee1293

Contents?: true

Size: 1002 Bytes

Versions: 7349

Compression:

Stored size: 1002 Bytes

Contents

begin
  # Only the minitest 5.x gem includes the minitest.rb and assertions.rb files.
  require 'minitest'
  require 'minitest/assertions'
rescue LoadError
  # We must be using Ruby Core's MiniTest or the Minitest gem 4.x.
  require 'minitest/unit'
  Minitest = MiniTest
end

module RSpec
  module Core
    # @private
    module MinitestAssertionsAdapter
      include ::Minitest::Assertions
      # Need to forcefully include Pending after Minitest::Assertions
      # to make sure our own #skip method beats Minitest's.
      include ::RSpec::Core::Pending

      # Minitest 5.x requires this accessor to be available. See
      # https://github.com/seattlerb/minitest/blob/38f0a5fcbd9c37c3f80a3eaad4ba84d3fc9947a0/lib/minitest/assertions.rb#L8
      #
      # It is not required for other extension libraries, and RSpec does not
      # report or make this information available to formatters.
      attr_writer :assertions
      def assertions
        @assertions ||= 0
      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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_assertions_adapter.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/rspec-core-3.13.2/lib/rspec/core/minitest_assertions_adapter.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/rspec-core-3.11.0/lib/rspec/core/minitest_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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_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/minitest_assertions_adapter.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/rspec-core-3.13.2/lib/rspec/core/minitest_assertions_adapter.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/rspec-core-3.13.2/lib/rspec/core/minitest_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/minitest_assertions_adapter.rb