Skip to content

Commit 4aa40aa

Browse files
committed
Disable a specs for Range#reverse_each that fails on Ruby 3.4.0 preview
1 parent 7c390dc commit 4aa40aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/range/reverse_each_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@
8888
(1..3).reverse_each.size.should == 3
8989
end
9090

91-
it "returns Infinity when Range size is infinite" do
92-
(..3).reverse_each.size.should == Float::INFINITY
91+
ruby_bug "#20936", "3.4"..."3.5" do
92+
it "returns Infinity when Range size is infinite" do
93+
(..3).reverse_each.size.should == Float::INFINITY
94+
end
9395
end
9496

9597
it "returns nil when Range size is unknown" do

0 commit comments

Comments
 (0)