test/zip_writer_test.rb in iostreams-0.8.0 vs test/zip_writer_test.rb in iostreams-0.8.1

- old
+ new

@@ -5,11 +5,11 @@ module Streams class ZipWriterTest < Minitest::Test context IOStreams::Zip::Writer do setup do file_name = File.join(File.dirname(__FILE__), 'files', 'text.txt') - @data = File.read(file_name) + @data = File.read(file_name) end context '.open' do should 'file' do temp_file = Tempfile.new('rocket_job') @@ -27,21 +27,21 @@ should 'stream' do io_string = StringIO.new(''.force_encoding('ASCII-8BIT')) IOStreams::Zip::Writer.open(io_string) do |io| io.write(@data) end - io = StringIO.new(io_string.string) + io = StringIO.new(io_string.string) result = nil begin - zin = ::Zip::InputStream.new(io) - entry = zin.get_next_entry + zin = ::Zip::InputStream.new(io) + entry = zin.get_next_entry result = zin.read ensure zin.close if zin end assert_equal @data, result end end end end -end \ No newline at end of file +end