We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71225dc + 5834e99 commit a54191fCopy full SHA for a54191f
test/encryption_test.rb
@@ -4,6 +4,15 @@ class EncryptionTest < MiniTest::Test
4
ENCRYPT_ZIP_TEST_FILE = 'test/data/zipWithEncryption.zip'
5
INPUT_FILE1 = 'test/data/file1.txt'
6
7
+ def setup
8
+ @default_compression = Zip.default_compression
9
+ Zip.default_compression = ::Zlib::DEFAULT_COMPRESSION
10
+ end
11
+
12
+ def teardown
13
+ Zip.default_compression = @default_compression
14
15
16
def test_encrypt
17
test_file = open(ENCRYPT_ZIP_TEST_FILE, 'rb').read
18
0 commit comments