Sha256: 2c6c6ec9eb7a2819fc67c95386b26d4146753939485a215c9b9028a6f5443f8c
Contents?: true
Size: 361 Bytes
Versions: 52
Compression:
Stored size: 361 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) 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
52 entries across 52 versions & 2 rubygems