1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Let Test::Unit::CoreAssertions::AllFailures#for yield the key

Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
This commit is contained in:
Nobuyoshi Nakada 2021-10-09 14:22:18 +09:00
parent 7e506716d2
commit 489c22b17f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -640,7 +640,7 @@ eom
def for(key) def for(key)
@count += 1 @count += 1
yield yield key
rescue Exception => e rescue Exception => e
@failures[key] = [@count, e] @failures[key] = [@count, e]
end end