зеркало из https://github.com/github/ruby.git
spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of ruby_3_0
https://github.com/ruby/spec/pull/833
8290e5ad89
This commit is contained in:
Родитель
f1f08f5b69
Коммит
6268fdc662
|
@ -84,7 +84,7 @@ describe "Hash#transform_keys!" do
|
|||
end
|
||||
end
|
||||
|
||||
ruby_version_is "2.5.1"..."3.1" do
|
||||
ruby_version_is "2.5.1"..."3.0.2" do # https://bugs.ruby-lang.org/issues/17735
|
||||
it "returns the processed keys if we broke from the block" do
|
||||
@hash.transform_keys! do |v|
|
||||
break if v == :c
|
||||
|
@ -94,7 +94,7 @@ describe "Hash#transform_keys!" do
|
|||
end
|
||||
end
|
||||
|
||||
ruby_version_is "3.1" do
|
||||
ruby_version_is "3.0.2" do
|
||||
it "returns the processed keys and non evaluated keys if we broke from the block" do
|
||||
@hash.transform_keys! do |v|
|
||||
break if v == :c
|
||||
|
|
Загрузка…
Ссылка в новой задаче