really send #== instead of #!=

This commit is contained in:
Laurent Sansonetti
2014-04-10 15:28:02 +02:00
parent 7e5cbcc514
commit 21522a99e3

View File

@@ -9,8 +9,9 @@ class ShouldResult < Java::Lang::Object
end
def ==(x)
if @obj != x
puts "Expectation failed (expected `#{self}' == `#{x}')"
if @obj == x
else
puts "Expectation failed (expected `#{@obj}' == `#{x}')"
$expectations_failures += 1
end
$expectations_total += 1