Skip to content

Commit 810a2f2

Browse files
committed
Fix stringio's specs on Ruby 3.3
1 parent d565e89 commit 810a2f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/stringio/shared/read.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
buffer.should == "example"
1616
end
1717

18-
guard -> { StringIO::VERSION < "3.1.1" } do
18+
guard -> { StringIO::VERSION < "3.1.2" } do
1919
it "does not preserve the encoding of the given buffer" do
2020
buffer = ''.encode(Encoding::ISO_8859_1)
2121
@io.send(@method, 7, buffer)
@@ -24,7 +24,7 @@
2424
end
2525
end
2626

27-
guard -> { StringIO::VERSION >= "3.1.1" } do
27+
guard -> { StringIO::VERSION >= "3.1.2" } do
2828
it "preserves the encoding of the given buffer" do
2929
buffer = ''.encode(Encoding::ISO_8859_1)
3030
@io.send(@method, 7, buffer)

0 commit comments

Comments
 (0)