Sha256: 8424971a020c869cf7506ac0db7181876534dbd8f7ac4c5b2ae52ec7ac3b5803

Contents?: true

Size: 482 Bytes

Versions: 218

Compression:

Stored size: 482 Bytes

Contents

module RSpec
  module Matchers
    module BuiltIn
      # @api private
      # Provides the implementation for `be_an_instance_of`.
      # Not intended to be instantiated directly.
      class BeAnInstanceOf < BaseMatcher
        # @api private
        # @return [String]
        def description
          "be an instance of #{expected}"
        end

      private

        def match(expected, actual)
          actual.instance_of? expected
        end
      end
    end
  end
end

Version data entries

218 entries across 197 versions & 61 rubygems

Version Path
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.6.2 rspec-expectations/lib/rspec/matchers/built_in/be_instance_of.rb
rspec-expectations-3.8.2 lib/rspec/matchers/built_in/be_instance_of.rb
xaiml-0.1.1 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb
xaiml-0.1.0 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb
bsielski_control_flow-1.0.0 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb
rspec-expectations-3.8.1 lib/rspec/matchers/built_in/be_instance_of.rb
rspec-expectations-3.8.0 lib/rspec/matchers/built_in/be_instance_of.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.7.0.rc.2 rspec-expectations/upstream/lib/rspec/matchers/built_in/be_instance_of.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.6.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb
tdiary-5.0.9 vendor/bundle/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb