From 21522a99e37dbd9daa235b9d12fd00c208cebdf5 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Thu, 10 Apr 2014 15:28:02 +0200 Subject: [PATCH] really send #== instead of #!= --- test/test-android/app/main.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-android/app/main.rb b/test/test-android/app/main.rb index 9ce3fbed..f75a75cc 100644 --- a/test/test-android/app/main.rb +++ b/test/test-android/app/main.rb @@ -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