test/gzip_reader_test.rb in iostreams-0.20.3 vs test/gzip_reader_test.rb in iostreams-1.0.0.beta
- old
+ new
@@ -10,18 +10,18 @@
Zlib::GzipReader.open(file_name) { |gz| gz.read }
end
describe '.open' do
it 'file' do
- result = IOStreams::Gzip::Reader.open(file_name) do |io|
+ result = IOStreams::Gzip::Reader.file(file_name) do |io|
io.read
end
assert_equal decompressed, result
end
it 'stream' do
result = File.open(file_name) do |file|
- IOStreams::Gzip::Reader.open(file) do |io|
+ IOStreams::Gzip::Reader.stream(file) do |io|
io.read
end
end
assert_equal decompressed, result
end