Sha256: c77cbbabc359f2581741027c51c0f5063342c7981a163b1dda93c5c2d31b9f84

Contents?: true

Size: 554 Bytes

Versions: 65

Compression:

Stored size: 554 Bytes

Contents

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

        def failure_message_for_should
          "\nexpected: #{expected.inspect}\n     got: #{actual.inspect}\n\n(compared using eql?)\n"
        end

        def failure_message_for_should_not
          "\nexpected: value != #{expected.inspect}\n     got: #{actual.inspect}\n\n(compared using eql?)\n"
        end

        def diffable?
          true
        end
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 19 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/eql.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
opal-rspec-cj-0.4.4 vendor_lib/rspec/matchers/built_in/eql.rb
opal-rspec-0.4.3 vendor_lib/rspec/matchers/built_in/eql.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb
opal-rspec-0.4.2 vendor_lib/rspec/matchers/built_in/eql.rb
opal-rspec-0.4.1 vendor_lib/rspec/matchers/built_in/eql.rb
opal-rspec-0.4.0 vendor_lib/rspec/matchers/built_in/eql.rb
opal-rspec-0.4.0.beta4 vendor_lib/rspec/matchers/built_in/eql.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eql.rb
rspec-expectations-2.99.2 lib/rspec/matchers/built_in/eql.rb
dxruby_rp5-0.0.4 spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eql.rb
rspec-expectations-2.99.1 lib/rspec/matchers/built_in/eql.rb
rspec-expectations-2.99.0 lib/rspec/matchers/built_in/eql.rb