diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-09-28 11:29:15 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-09-28 11:29:15 +0200 |
commit | f2c6a3513fa6bbff8e009fbd442e233db848b7c4 (patch) | |
tree | f6b3470ef7ee29f8f855a4d5dc09499f0ca0c61a /spec | |
parent | 245ed57ddc93901e90388cf479968392299d1067 (diff) |
Clarify spec description for Hash#{each,each_pair}
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/hash/shared/each.rb | 2 |
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 |