diff options
author | Benoit Daloze <eregontp@gmail.com> | 2024-03-14 21:44:53 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2024-03-14 21:44:53 +0100 |
commit | ed2f68525302413a676d81821b949a21d46407e9 (patch) | |
tree | abfde129320df80dc37e98fcbb13581e3ac6f97b /spec/ruby/core/io/read_nonblock_spec.rb | |
parent | 1d9f99144bb5239de303c51b86ccde3a33782e8d (diff) |
Update to ruby/spec@89175b2
Diffstat (limited to 'spec/ruby/core/io/read_nonblock_spec.rb')
-rw-r--r-- | spec/ruby/core/io/read_nonblock_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/io/read_nonblock_spec.rb b/spec/ruby/core/io/read_nonblock_spec.rb index a62b75274c..51e7cd6bd2 100644 --- a/spec/ruby/core/io/read_nonblock_spec.rb +++ b/spec/ruby/core/io/read_nonblock_spec.rb @@ -96,21 +96,21 @@ describe "IO#read_nonblock" do end it "reads into the passed buffer" do - buffer = "" + buffer = +"" @write.write("1") @read.read_nonblock(1, buffer) buffer.should == "1" end it "returns the passed buffer" do - buffer = "" + buffer = +"" @write.write("1") output = @read.read_nonblock(1, buffer) output.should equal(buffer) end it "discards the existing buffer content upon successful read" do - buffer = "existing content" + buffer = +"existing content" @write.write("hello world") @write.close @read.read_nonblock(11, buffer) @@ -118,7 +118,7 @@ describe "IO#read_nonblock" do end it "discards the existing buffer content upon error" do - buffer = "existing content" + buffer = +"existing content" @write.close -> { @read.read_nonblock(1, buffer) }.should raise_error(EOFError) buffer.should be_empty |