Sha256: e4500b18d245def5a183843814da1f82af13797c982fd17637575a16508a830f

Contents?: true

Size: 285 Bytes

Versions: 56

Compression:

Stored size: 285 Bytes

Contents

module RSpec
  module Matchers
    module BuiltIn
      class BeAnInstanceOf < BaseMatcher
        def match(expected, actual)
          actual.instance_of? expected
        end

        def description
          "be an instance of #{expected}"
        end
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 16 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-cj-0.4.4 vendor_lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.4.3 vendor_lib/rspec/matchers/built_in/be_instance_of.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.4.2 vendor_lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.4.1 vendor_lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.4.0 vendor_lib/rspec/matchers/built_in/be_instance_of.rb
opal-rspec-0.4.0.beta4 vendor_lib/rspec/matchers/built_in/be_instance_of.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_instance_of.rb
rspec-expectations-2.99.2 lib/rspec/matchers/built_in/be_instance_of.rb
dxruby_rp5-0.0.4 spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_instance_of.rb
rspec-expectations-2.99.1 lib/rspec/matchers/built_in/be_instance_of.rb
rspec-expectations-2.99.0 lib/rspec/matchers/built_in/be_instance_of.rb