ruby-changes:63175
From: Benoit <ko1@a...>
Date: Mon, 28 Sep 2020 18:29:48 +0900 (JST)
Subject: [ruby-changes:63175] f2c6a3513f (master): Clarify spec description for Hash#{each, each_pair}
https://git.ruby-lang.org/ruby.git/commit/?id=f2c6a3513f From f2c6a3513fa6bbff8e009fbd442e233db848b7c4 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Mon, 28 Sep 2020 11:29:15 +0200 Subject: Clarify spec description for Hash#{each,each_pair} diff --git a/spec/ruby/core/hash/shared/each.rb b/spec/ruby/core/hash/shared/each.rb index e0c0a94..04a26b5 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/hash/shared/each.rb#L39 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/