5 def initialize(expected)
11 @actual.eql?(@expected)
15 return "expected #{@expected.inspect}, got #{@actual.inspect} (using .eql?)", @expected, @actual
18 def negative_failure_message
19 return "expected #{@actual.inspect} not to equal #{@expected.inspect} (using .eql?)", @expected, @actual
23 "eql #{@expected.inspect}"
28 # should eql(expected)
29 # should_not eql(expected)
31 # Passes if actual and expected are of equal value, but not necessarily the same object.
33 # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby.
40 Matchers::Eql.new(expected)