Skip to content

Commit

Permalink
Refresh specs for StringIO#sysread
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Oct 15, 2024
1 parent 3162f1e commit ab6b40f
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 ab6b40f

Please sign in to comment.