Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StringIO#write will raise an IOError if string is frozen.
Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions require 'stringio' s = "" f = StringIO.new(s, "w") s.freeze assert_raise(IOError){ f.write("foo") } puts :ok }}}
- Loading branch information