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
opal-rspec-0.8.0 rspec-expectations/upstream/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.8.0.alpha3 rspec-expectations/upstream/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.8.0.alpha2 rspec-expectations/upstream/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.8.0.alpha1 rspec-expectations/upstream/lib/rspec/matchers/built_in/be_instance_of.rb