# File test/test_pseudo_io.rb, line 65 def test_close assert(! @io.closed?) @io.write('hello world.') assert_equal('hello world.', @io.read) @io.close assert(@io.closed?) assert_exception(RuntimeError) { @io.write('hello world.') } assert_exception(RuntimeError) { @io.read } end