From f1587a2281cf538665d2012012dadd451b04bb9f Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 25 Jul 2016 13:40:15 -0300 Subject: [PATCH] make assert_equivalent error message more meaningful --- test/test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 52e91e6..1ca74d7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -87,8 +87,8 @@ class ActiveSupport::TestCase norm1 = enum1.group_by{|e|e}.values norm2 = enum2.group_by{|e|e}.values assert_equal norm1.size, norm2.size, "Size mismatch: #{enum1.inspect} vs #{enum2.inspect}" - assert_equal [], norm1 - norm2 - assert_equal [], norm2 - norm1 + assert_equal [], norm1 - norm2, "Arrays #{norm1} and #{norm2} are not equivalents" + assert_equal [], norm2 - norm1, "Arrays #{norm1} and #{norm2} are not equivalents" end def assert_mandatory(object, attribute, test_value = 'some random string') -- libgit2 0.21.2