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
coingecko_client-0.1.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.8.4/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_kind_of.rb
cloudsmith-api-0.51.38 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
cloudsmith-api-0.51.37 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.8.4/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
cloudsmith-api-0.51.34 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
cloudsmith-api-0.51.22 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.8.4/lib/rspec/matchers/built_in/be_kind_of.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_kind_of.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.8.4/lib/rspec/matchers/built_in/be_kind_of.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
rentdynamics-0.2.0 .gems/gems/rspec-expectations-3.9.1/lib/rspec/matchers/built_in/be_kind_of.rb
rentdynamics-0.2.0 .bundle/ruby/2.6.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb
rspec-expectations-3.9.2 lib/rspec/matchers/built_in/be_kind_of.rb
jscop-0.1.2 vendor/cache/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/matchers/built_in/be_kind_of.rb