Class: Zip64SupportTest

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

Constant Summary collapse

TEST_FILE =
File.join(File.dirname(__FILE__), 'data', 'zip64-sample.zip')

Instance Method Summary collapse

Instance Method Details

#test_open_zip64_fileObject



6
7
8
9
10
11
12
13
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/zip64_support_test.rb', line 6

def test_open_zip64_file
  zip_file = ::Zip::File.open(TEST_FILE)
  assert(!zip_file.nil?)
  assert(zip_file.entries.count == 2)
  test_rb = zip_file.entries.find { |x| x.name == 'test.rb' }
  assert(test_rb.size == 482)
  assert(test_rb.compressed_size == 229)
end