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:
parent
7e506716d2
commit
489c22b17f
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ eom
|
|||
|
||||
def for(key)
|
||||
@count += 1
|
||||
yield
|
||||
yield key
|
||||
rescue Exception => e
|
||||
@failures[key] = [@count, e]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue