Sha256: e617bfe1a7a3ded4968e64d6208762f3a8b0e8ed456fd25bb02faf0445d7368a

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

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