Package: ruby-zip / 1.2.2-1

fix-random-tests-failures Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix random tests failures

Origin: upstream, https://github.com/rubyzip/rubyzip/commit/96f84aee4c575a0c886462abb809ef47e2866f94
Last-Update: 2014-09-23

--- a/test/central_directory_test.rb
+++ b/test/central_directory_test.rb
@@ -5,6 +5,10 @@
     ::Zip.reset!
   end
 
+  def teardown
+    ::Zip.reset!
+  end
+
   def test_read_from_stream
     ::File.open(TestZipFile::TEST_ZIP2.zip_name, 'rb') do |zipFile|
       cdir = ::Zip::CentralDirectory.read_from_stream(zipFile)