Sha256: ec1ff98ed2447742063e11565d9b785debfc18c0ce64dd45463f6f398d4b4fad

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

require 'object_comparator'

class ObjectComparator
  module Minitest
    def assert_equal_objects(obj1, obj2, message = nil)
      obj1 = InspectionString.new(obj1.inspect)
      obj2 = InspectionString.new(obj2.inspect)

      assert_equal(obj1, obj2, message)
    end

    def refute_equal_objects(obj1, obj2, message = nil)
      obj1 = InspectionString.new(obj1.inspect)
      obj2 = InspectionString.new(obj2.inspect)

      refute_equal(obj1, obj2, message)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
object_comparator-0.1.1 lib/object_comparator/minitest.rb