Sha256: c2e823ed09bd4096dffdc9c572ed316d8b529a5232a88206e3373e2b8be929ba
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
require 'object_comparator' class ObjectComparator module Minitest def assert_equal_objects(expected, actual, message = nil) expected = InspectionString.new(expected.inspect) actual = InspectionString.new(actual.inspect) message ||= ObjectComparator.new.failing_message_for_should(expected, actual) assert_equal(expected, actual, message) end def refute_equal_objects(expected, actual, message = nil) expected = InspectionString.new(expected.inspect) actual = InspectionString.new(actual.inspect) message ||= ObjectComparator.new.failing_message_for_should_not(expected, actual) refute_equal(expected, actual, message) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
object_comparator-0.1.4 | lib/object_comparator/minitest.rb |
object_comparator-0.1.3 | lib/object_comparator/minitest.rb |
object_comparator-0.1.2 | lib/object_comparator/minitest.rb |