test/zip_reader_test.rb in iostreams-0.8.1 vs test/zip_reader_test.rb in iostreams-0.8.2

- old
+ new

@@ -2,25 +2,25 @@ require 'zip' # Unit Test for IOStreams::Zip module Streams class ZipReaderTest < Minitest::Test - context IOStreams::Zip::Reader do - setup do + describe IOStreams::Zip::Reader do + before do @file_name = File.join(File.dirname(__FILE__), 'files', 'text.zip') @zip_data = File.open(@file_name, 'rb') { |f| f.read } @data = Zip::File.open(@file_name) { |zip_file| zip_file.first.get_input_stream.read } end - context '.open' do - should 'file' do + describe '.open' do + it 'file' do result = IOStreams::Zip::Reader.open(@file_name) do |io| io.read end assert_equal @data, result end - should 'stream' do + it 'stream' do result = File.open(@file_name) do |file| IOStreams::Zip::Reader.open(file) do |io| io.read end end @@ -28,6 +28,6 @@ end end end end -end \ No newline at end of file +end