test/file_writer_test.rb in iostreams-0.8.2 vs test/file_writer_test.rb in iostreams-0.9.0
- old
+ new
@@ -17,9 +17,10 @@
io.write(@data)
end
result = File.read(file_name)
assert_equal @data, result
end
+
it 'stream' do
io_string = StringIO.new
IOStreams::File::Writer.open(io_string) do |io|
io.write(@data)
end