diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index eed5aca6a4..10fac04701 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -474,7 +474,7 @@ EOT failed = [] obj.each do |*a, &b| if blk.call(*a, &b) - failed << a.size > 1 ? a : a[0] + failed << (a.size > 1 ? a : a[0]) end end assert(failed.empty?, message(m) {failed.pretty_inspect})