lib/assert/result.rb in assert-2.18.4 vs lib/assert/result.rb in assert-2.19.0

- old
+ new

@@ -127,10 +127,14 @@ self.trace ].reject(&:empty?).join("\n") end def ==(other_result) - self.type == other_result.type && self.message == other_result.message + if other_result.is_a?(self.class) + self.type == other_result.type && self.message == other_result.message + else + super + end end def inspect "#<#{self.class}:#{"0x0%x" % (object_id << 1)} "\ "@message=#{self.message.inspect} "\