Sha256: a36618132275d7f9f01daf1c0e211ae8529c2855e3721e954a8bd36b4db817ff

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

require File.expand_path('../fixtures/classes', __FILE__)

describe "StringIO#closed_read?" do
  it "returns true if self is not readable" do
    io = StringIO.new("example", "r+")
    io.close_write
    io.closed_read?.should be_false
    io.close_read
    io.closed_read?.should be_true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysl-stringio-2.3 spec/closed_read_spec.rb
rubysl-stringio-2.2 spec/closed_read_spec.rb
rubysl-stringio-2.1 spec/closed_read_spec.rb
rubysl-stringio-2.1.0 spec/closed_read_spec.rb
rubysl-stringio-1.0.1 spec/closed_read_spec.rb
rubysl-stringio-1.0.0 spec/closed_read_spec.rb
rubysl-stringio-2.0.0 spec/closed_read_spec.rb