test/test_05_rows.rb in writeexcel-0.6.18 vs test/test_05_rows.rb in writeexcel-0.6.19

- old
+ new

@@ -17,9 +17,18 @@ class TC_rows < Test::Unit::TestCase def setup 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_1 file = StringIO.new workbook = WriteExcel.new(file) workbook.compatibility_mode(1) @tests = []