test/test_buffer_io.rb in tracksperanto-3.3.12 vs test/test_buffer_io.rb in tracksperanto-3.3.13

- old
+ new

@@ -4,17 +4,17 @@ class TestBufferIO < Test::Unit::TestCase def test_write_in_mem_has_a_stringio io = Tracksperanto::BufferIO.new 9000.times { io.write("a") } - assert_kind_of StringIO, io.__getobj__ + assert_kind_of StringIO, io.backing_buffer assert_nothing_raised { io.close! } end def test_write_larger_than_max_swaps_tempfile io = Tracksperanto::BufferIO.new io.write("a" * 6_000_001) - f = io.__getobj__ + f = io.backing_buffer assert_kind_of Tempfile, f f.rewind assert_equal 6_000_001, f.read.length flexmock(f).should_receive(:close!).once io.close!