Skip to content

Commit 129150d

Browse files
herwinwandrykonchin
authored andcommitted
Remove some additional version guards for Ruby 3.0.x
These were specific subversions, I guess the grep regex did not match those.
1 parent 59e451a commit 129150d

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

core/hash/transform_keys_spec.rb

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,12 @@
7676
@hash.should == { b: 1, c: 2, d: 3, e: 4 }
7777
end
7878

79-
ruby_version_is ""..."3.0.2" do # https://bugs.ruby-lang.org/issues/17735
80-
it "returns the processed keys if we break from the block" do
81-
@hash.transform_keys! do |v|
82-
break if v == :c
83-
v.succ
84-
end
85-
@hash.should == { b: 1, c: 2 }
86-
end
87-
end
88-
89-
ruby_version_is "3.0.2" do
90-
it "returns the processed keys and non evaluated keys if we break from the block" do
91-
@hash.transform_keys! do |v|
92-
break if v == :c
93-
v.succ
94-
end
95-
@hash.should == { b: 1, c: 2, d: 4 }
79+
it "returns the processed keys and non evaluated keys if we break from the block" do
80+
@hash.transform_keys! do |v|
81+
break if v == :c
82+
v.succ
9683
end
84+
@hash.should == { b: 1, c: 2, d: 4 }
9785
end
9886

9987
it "keeps later pair if new keys conflict" do

core/io/readpartial_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,10 @@
9393
@rd.readpartial(0).should == ""
9494
end
9595

96-
ruby_bug "#18421", ""..."3.0.4" do
97-
it "clears and returns the given buffer if the length argument is 0" do
98-
buffer = +"existing content"
99-
@rd.readpartial(0, buffer).should == buffer
100-
buffer.should == ""
101-
end
96+
it "clears and returns the given buffer if the length argument is 0" do
97+
buffer = +"existing content"
98+
@rd.readpartial(0, buffer).should == buffer
99+
buffer.should == ""
102100
end
103101

104102
it "preserves the encoding of the given buffer" do

0 commit comments

Comments
 (0)