Skip to content

Commit

Permalink
Merge pull request #2267 from herwinw/stringio_sysread_spec
Browse files Browse the repository at this point in the history
Refresh specs for StringIO#sysread
  • Loading branch information
seven1m authored Oct 15, 2024
2 parents 3162f1e + ab6b40f commit 39a0adf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/library/stringio/sysread_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../../spec_helper'
require "stringio"
require_relative 'shared/read'
require_relative 'shared/sysread'

describe "StringIO#sysread when passed length, buffer" do
it_behaves_like :stringio_read, :sysread
Expand Down Expand Up @@ -32,6 +33,10 @@
end
end

describe "StringIO#sysread when passed length" do
it_behaves_like :stringio_sysread_length, :sysread
end

describe "StringIO#sysread when passed [length]" do
before :each do
@io = StringIO.new("example")
Expand Down

0 comments on commit 39a0adf

Please sign in to comment.