summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/readpartial_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/readpartial_spec.rb')
-rw-r--r--spec/ruby/core/io/readpartial_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/ruby/core/io/readpartial_spec.rb b/spec/ruby/core/io/readpartial_spec.rb
index 324ae0b6e6..2901b429c2 100644
--- a/spec/ruby/core/io/readpartial_spec.rb
+++ b/spec/ruby/core/io/readpartial_spec.rb
@@ -93,10 +93,12 @@ describe "IO#readpartial" do
@rd.readpartial(0).should == ""
end
- it "clears and returns the given buffer if the length argument is 0" do
- buffer = "existing content"
- @rd.readpartial(0, buffer).should == buffer
- buffer.should == ""
+ ruby_bug "#18421", ""..."3.0.4" do
+ it "clears and returns the given buffer if the length argument is 0" do
+ buffer = "existing content"
+ @rd.readpartial(0, buffer).should == buffer
+ buffer.should == ""
+ end
end
it "preserves the encoding of the given buffer" do