Skip to content

Commit 8290e5a

Browse files
committed
Clarify that the behavior is only changed in 3.0.2
* It might be backported to earlier versions too, see https://bugs.ruby-lang.org/issues/17735
1 parent 07b95bf commit 8290e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/hash/transform_keys_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
end
8585
end
8686

87-
ruby_version_is "2.5.1"..."3.0" do
87+
ruby_version_is "2.5.1"..."3.0.2" do # https://bugs.ruby-lang.org/issues/17735
8888
it "returns the processed keys if we broke from the block" do
8989
@hash.transform_keys! do |v|
9090
break if v == :c
@@ -94,7 +94,7 @@
9494
end
9595
end
9696

97-
ruby_version_is "3.0" do
97+
ruby_version_is "3.0.2" do
9898
it "returns the processed keys and non evaluated keys if we broke from the block" do
9999
@hash.transform_keys! do |v|
100100
break if v == :c

0 commit comments

Comments
 (0)