Clarify spec description for Hash#{each,each_pair}

This commit is contained in:
Benoit Daloze 2020-09-28 11:29:15 +02:00
parent 245ed57ddc
commit f2c6a3513f

View File

@ -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