Module: ObjectComparator::Minitest
- Defined in:
- lib/object_comparator/minitest.rb
Instance Method Summary collapse
- #assert_equal_objects(obj1, obj2, message = nil) ⇒ Object
- #refute_equal_objects(obj1, obj2, message = nil) ⇒ Object
Instance Method Details
#assert_equal_objects(obj1, obj2, message = nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/object_comparator/minitest.rb', line 5 def assert_equal_objects(obj1, obj2, = nil) obj1 = InspectionString.new(obj1.inspect) obj2 = InspectionString.new(obj2.inspect) assert_equal(obj2, obj1, ) end |
#refute_equal_objects(obj1, obj2, message = nil) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/object_comparator/minitest.rb', line 12 def refute_equal_objects(obj1, obj2, = nil) obj1 = InspectionString.new(obj1.inspect) obj2 = InspectionString.new(obj2.inspect) refute_equal(obj2, obj1, ) end |