mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-07 22:42:10 +08:00
really send #== instead of #!=
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user