class ObjectComparator
Constants
- VERSION
Public Instance Methods
equal?(one, other)
click to toggle source
# File lib/object_comparator.rb, line 4 def equal?(one, other) one = InspectionString.new(one.inspect) other = InspectionString.new(other.inspect) one == other end
failing_message_for_should(one, other)
click to toggle source
# File lib/object_comparator.rb, line 10 def failing_message_for_should(one, other) one = InspectionString.new(one.inspect) other = InspectionString.new(other.inspect) "expected #{other} to be equal to #{one}" end
failing_message_for_should_not(one, other)
click to toggle source
# File lib/object_comparator.rb, line 17 def failing_message_for_should_not(one, other) one = InspectionString.new(one.inspect) other = InspectionString.new(other.inspect) "expected #{other} not to be equal to #{one}" end