mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Clarify spec description for Hash#{each,each_pair}
This commit is contained in:
parent
245ed57ddc
commit
f2c6a3513f
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ describe :hash_each, shared: true do
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_version_is "3.0" do
|
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
|
obj = Object.new
|
||||||
def obj.foo(key, value)
|
def obj.foo(key, value)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue