Class: PassThruDecompressorTest

Inherits:
MiniTest::Test
  • Object
show all
Includes:
DecompressorTests
Defined in:
lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_decompressor_test.rb

Constant Summary

Constants included from DecompressorTests

DecompressorTests::TEST_FILE

Instance Method Summary collapse

Methods included from DecompressorTests

#test_mixingReadsAndProduceInput, #test_readEverything, #test_readInChunks

Instance Method Details

#setupObject



5
6
7
8
9
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_decompressor_test.rb', line 5

def setup
  super
  @file = File.new(TEST_FILE)
  @decompressor = ::Zip::PassThruDecompressor.new(@file, File.size(TEST_FILE))
end

#teardownObject



11
12
13
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/pass_thru_decompressor_test.rb', line 11

def teardown
  @file.close
end