Skip to content

Commit

Permalink
Add test for unsupported decompression, e.g bzip2
Browse files Browse the repository at this point in the history
  • Loading branch information
jspanjers committed Jan 26, 2020
1 parent a5d068d commit 0b9433c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/bzip2_support_test.rb
@@ -0,0 +1,11 @@
require 'test_helper'

class Bzip2SupportTest < MiniTest::Test
BZIP2_ZIP_TEST_FILE = 'test/data/zipWithBzip2Compression.zip'

def test_read
Zip::InputStream.open(BZIP2_ZIP_TEST_FILE) do |zis|

This comment has been minimized.

assert_raises(Zip::CompressionMethodError) { zis.get_next_entry }
end
end
end
Binary file added test/data/zipWithBzip2Compression.zip
Binary file not shown.

0 comments on commit 0b9433c

Please sign in to comment.