test/test_06_extsst.rb in writeexcel-0.6.18 vs test/test_06_extsst.rb in writeexcel-0.6.19
- old
+ new
@@ -53,9 +53,18 @@
[4194304, 128, 32769],
[8257536, 128, 64513],
]
end
+ def teardown
+ if @workbook.instance_variable_get(:@filehandle)
+ @workbook.instance_variable_get(:@filehandle).close(true)
+ end
+ if @worksheet.instance_variable_get(:@filehandle)
+ @worksheet.instance_variable_get(:@filehandle).close(true)
+ end
+ end
+
def test_to_tests
@tests.each do |test|
io = StringIO.new
workbook = WriteExcel.new(io)
workbook.not_using_tmpfile