summaryrefslogtreecommitdiff
path: root/tool/lib/core_assertions.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-10-09 14:22:18 +0900
committerNobuyoshi Nakada <[email protected]>2021-10-09 14:28:27 +0900
commit489c22b17f347d15500931397a1a4c8b66b023dd ()
treedc1e47306675c8cf75c0eed686f5346ef8866e78 /tool/lib/core_assertions.rb
parent7e506716d2c7085c6f243705a0b6eb79b2176c49 (diff)
Let `Test::Unit::CoreAssertions::AllFailures#for` yield the key
Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
-rw-r--r--tool/lib/core_assertions.rb2
1 files changed, 1 insertions, 1 deletions
@@ -640,7 +640,7 @@ eom
def for(key)
@count += 1
- yield
rescue Exception => e
@failures[key] = [@count, e]
end