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

- old
+ new

@@ -8,20 +8,20 @@ let :decompressed do File.read(File.join(File.dirname(__FILE__), 'files', 'text.txt')) end - describe '.open' do + describe '.file' do it 'file' do - result = IOStreams::Bzip2::Reader.open(file_name) do |io| + result = IOStreams::Bzip2::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::Bzip2::Reader.open(file) do |io| + IOStreams::Bzip2::Reader.stream(file) do |io| io.read end end assert_equal decompressed, result end