Clarify spec description for Hash#{each,each_pair}
This commit is contained in:
parent
245ed57ddc
commit
f2c6a3513f
@ -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…
x
Reference in New Issue
Block a user