Sha256: 26fb7ef61eb8cce4956a9bec55b8b2d695137f4638ae40b6946da5583b963823

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

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

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

        def failure_message_when_negated
          "\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

1 entries across 1 versions & 1 rubygems

Version Path
rspec-expectations-3.0.0.beta2 lib/rspec/matchers/built_in/eql.rb