Sha256: 46d87a1b0e6f1648353cf003a4ac39776ddd5743d3ca46c98cc555d3190a3d18

Contents?: true

Size: 616 Bytes

Versions: 7161

Compression:

Stored size: 616 Bytes

Contents

module RSpec
  module Matchers
    module BuiltIn
      # @api private
      # Provides the implementation for `be_a_kind_of`.
      # Not intended to be instantiated directly.
      class BeAKindOf < BaseMatcher
      private

        def match(expected, actual)
          actual.kind_of?(expected)
        rescue NoMethodError
          raise ::ArgumentError, "The #{matcher_name} matcher requires that " \
                                 "the actual object responds to #kind_of? method " \
                                 "but a `NoMethodError` was encountered instead."
        end
      end
    end
  end
end

Version data entries

7,161 entries across 7,094 versions & 76 rubygems

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