There was an error while loading. Please reload this page.
1 parent 1e9820a commit 0e70cbaCopy full SHA for 0e70cba
1 file changed
test/test_helper.rb
@@ -5,12 +5,16 @@
5
require 'ro_crate'
6
require 'webmock/test_unit'
7
8
-def teardown
9
- self._opened_files.each(&:close)
10
-end
+class Test::Unit::TestCase
+ def teardown
+ self._opened_files.each do |f|
11
+ f.close unless f.closed?
12
+ end
13
14
-def _opened_files
- @opened_files ||= []
15
+ def _opened_files
16
+ @opened_files ||= []
17
18
end
19
20
def fixture_file(name, *args)
0 commit comments