test/bzip2_writer_test.rb in iostreams-0.20.3 vs test/bzip2_writer_test.rb in iostreams-1.0.0.beta

- old
+ new

@@ -16,13 +16,13 @@ after do temp_file.delete end - describe '.open' do + describe '.file' do it 'file' do - IOStreams::Bzip2::Writer.open(file_name) do |io| + IOStreams::Bzip2::Writer.file(file_name) do |io| io.write(decompressed) end File.open(file_name, 'rb') do |file| io = RBzip2.default_adapter::Decompressor.new(file) @@ -32,10 +32,10 @@ end end it 'stream' do io_string = StringIO.new(''.b) - IOStreams::Bzip2::Writer.open(io_string) do |io| + IOStreams::Bzip2::Writer.stream(io_string) do |io| io.write(decompressed) end io = StringIO.new(io_string.string) rbzip2 = RBzip2.default_adapter::Decompressor.new(io)