test/regression/test_table14.rb in write_xlsx-0.85.5 vs test/regression/test_table14.rb in write_xlsx-0.85.6

- old
+ new

@@ -5,16 +5,16 @@ def setup setup_dir_var end def teardown - File.delete(@xlsx) if File.exist?(@xlsx) + @tempfile.close(true) end def test_table14 @xlsx = 'table14.xlsx' - workbook = WriteXLSX.new(@xlsx) + workbook = WriteXLSX.new(@io) worksheet = workbook.add_worksheet format1 = workbook.add_format(:num_format => '0.00;[Red]0.00', :dxf_index => 2) format2 = workbook.add_format(:num_format => '0.00_ ;\-0.00\ ', :dxf_index => 1) format3 = workbook.add_format(:num_format => '0.00_ ;[Red]\-0.00\ ', :dxf_index => 0) @@ -41,10 +41,10 @@ ] } ) workbook.close - compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx, + compare_for_regression( nil, { 'xl/workbook.xml' => ['<workbookView'] } ) end end