summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/shared/sysread.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2024-11-06 21:57:34 +0100
committerBenoit Daloze <[email protected]>2024-11-06 21:58:28 +0100
commitfdc82cca83bbbfe88f90d2888e139a6dde481101 (patch)
tree99165cce6af5eaca59316c06fed33f958c85e16a /spec/ruby/library/stringio/shared/sysread.rb
parent9bc63e7ba066b31314bbd66def4932b398eaf4c9 (diff)
Update to ruby/spec@54c391e
Diffstat (limited to 'spec/ruby/library/stringio/shared/sysread.rb')
-rw-r--r--spec/ruby/library/stringio/shared/sysread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/stringio/shared/sysread.rb b/spec/ruby/library/stringio/shared/sysread.rb
index 937bac705c..3e23fbc233 100644
--- a/spec/ruby/library/stringio/shared/sysread.rb
+++ b/spec/ruby/library/stringio/shared/sysread.rb
@@ -10,6 +10,6 @@ describe :stringio_sysread_length, shared: true do
it "raises an EOFError when passed length > 0 and no data remains" do
@io.read.should == "example"
- -> { @io.sysread(1) }.should raise_error(EOFError)
+ -> { @io.send(@method, 1) }.should raise_error(EOFError)
end
end