[前][次][番号順一覧][スレッド一覧]

ruby-changes:65875

From: Yusuke <ko1@a...>
Date: Fri, 16 Apr 2021 11:05:34 +0900 (JST)
Subject: [ruby-changes:65875] 6268fdc662 (master): spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of ruby_3_0

https://git.ruby-lang.org/ruby.git/commit/?id=6268fdc662

From 6268fdc662c75c61091b2ab0b476ec15df023328 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Fri, 16 Apr 2021 11:04:23 +0900
Subject: spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of
 ruby_3_0

https://github.com/ruby/spec/pull/833
https://github.com/ruby/spec/commit/8290e5ad8952b14ee9a5069651d9864c66681112
---
 spec/ruby/core/hash/transform_keys_spec.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/ruby/core/hash/transform_keys_spec.rb b/spec/ruby/core/hash/transform_keys_spec.rb
index 63403a2..4f4544a 100644
--- a/spec/ruby/core/hash/transform_keys_spec.rb
+++ b/spec/ruby/core/hash/transform_keys_spec.rb
@@ -84,7 +84,7 @@ describe "Hash#transform_keys!" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/hash/transform_keys_spec.rb#L84
     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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/hash/transform_keys_spec.rb#L94
     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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]