summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-09-28 11:29:15 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-09-28 11:29:15 +0200
commitf2c6a3513fa6bbff8e009fbd442e233db848b7c4 (patch)
treef6b3470ef7ee29f8f855a4d5dc09499f0ca0c61a
parent245ed57ddc93901e90388cf479968392299d1067 (diff)
Clarify spec description for Hash#{each,each_pair}
-rw-r--r--spec/ruby/core/hash/shared/each.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/hash/shared/each.rb b/spec/ruby/core/hash/shared/each.rb
index e0c0a949ca..04a26b5c45 100644
--- a/spec/ruby/core/hash/shared/each.rb
+++ b/spec/ruby/core/hash/shared/each.rb
@@ -39,7 +39,7 @@ describe :hash_each, shared: true do
end
ruby_version_is "3.0" do
- it "yields an Array of 2 elements when given a callable of arity 2" do
+ it "always yields an Array of 2 elements, even when given a callable of arity 2" do
obj = Object.new
def obj.foo(key, value)
end