diff options
author | Andrew Konchin <[email protected]> | 2025-03-26 19:56:40 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2025-03-27 11:09:24 +0100 |
commit | bac22c985ecc7e4309b5b5e5ae1074c81319e889 (patch) | |
tree | 5c164d3ed99240737205068f612d47496487758e /spec/ruby/library/stringio/shared | |
parent | 53a930f1570c81d2f7829f932e8d7ad67e8462b8 (diff) |
Update to ruby/spec@5e579e2
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12984
Diffstat (limited to 'spec/ruby/library/stringio/shared')
-rw-r--r-- | spec/ruby/library/stringio/shared/read.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringio/shared/read.rb b/spec/ruby/library/stringio/shared/read.rb index 8ef6ec2734..22f76b0fb0 100644 --- a/spec/ruby/library/stringio/shared/read.rb +++ b/spec/ruby/library/stringio/shared/read.rb @@ -15,7 +15,7 @@ describe :stringio_read, shared: true do buffer.should == "example" end - ruby_version_is ""..."3.4" do + guard -> { StringIO::VERSION < "3.1.2" } do it "does not preserve the encoding of the given buffer" do buffer = ''.encode(Encoding::ISO_8859_1) @io.send(@method, 7, buffer) @@ -24,7 +24,7 @@ describe :stringio_read, shared: true do end end - ruby_version_is "3.4" do + guard -> { StringIO::VERSION >= "3.1.2" } do it "preserves the encoding of the given buffer" do buffer = ''.encode(Encoding::ISO_8859_1) @io.send(@method, 7, buffer) |