Skip to content

Commit a54191f

Browse files
committed
Merge branch 'master' of https://github.com/matsu911/rubyzip
2 parents 71225dc + 5834e99 commit a54191f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/encryption_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ class EncryptionTest < MiniTest::Test
44
ENCRYPT_ZIP_TEST_FILE = 'test/data/zipWithEncryption.zip'
55
INPUT_FILE1 = 'test/data/file1.txt'
66

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+
end
15+
716
def test_encrypt
817
test_file = open(ENCRYPT_ZIP_TEST_FILE, 'rb').read
918

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy