summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-09 14:22:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-09 14:28:27 +0900
commit489c22b17f347d15500931397a1a4c8b66b023dd (patch)
treedc1e47306675c8cf75c0eed686f5346ef8866e78 /tool/lib
parent7e506716d2c7085c6f243705a0b6eb79b2176c49 (diff)
Let `Test::Unit::CoreAssertions::AllFailures#for` yield the key
Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/core_assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb
index 9530187db4..33c49f518b 100644
--- a/tool/lib/core_assertions.rb
+++ b/tool/lib/core_assertions.rb
@@ -640,7 +640,7 @@ eom
def for(key)
@count += 1
- yield
+ yield key
rescue Exception => e
@failures[key] = [@count, e]
end