test/gzip_writer_test.rb in iostreams-0.8.2 vs test/gzip_writer_test.rb in iostreams-0.9.0
- old
+ new
@@ -18,9 +18,10 @@
end
result = Zlib::GzipReader.open(file_name) { |gz| gz.read }
temp_file.delete
assert_equal @data, result
end
+
it 'stream' do
io_string = StringIO.new(''.force_encoding('ASCII-8BIT'))
IOStreams::Gzip::Writer.open(io_string) do |io|
io.write(@data)
end