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

- old
+ new

@@ -5,32 +5,30 @@ def setup setup_dir_var end def teardown - File.delete(@xlsx) if File.exist?(@xlsx) + @tempfile.close(true) end def test_repeat04 @xlsx = 'repeat04.xlsx' - workbook = WriteXLSX.new(@xlsx) + workbook = WriteXLSX.new(@io) worksheet = workbook.add_worksheet('Sheet 1') worksheet.repeat_rows(0) worksheet.write('A1', 'Foo') workbook.close - compare_xlsx_for_regression( - File.join(@regression_output, @xlsx), - @xlsx, - [ - 'xl/printerSettings/printerSettings1.bin', - 'xl/worksheets/_rels/sheet1.xml.rels' - ], - { - '[Content_Types].xml' => ['<Default Extension="bin"'], - 'xl/worksheets/sheet1.xml' => ['<pageMargins', '<pageSetup'] - } - ) + compare_for_regression( + [ + 'xl/printerSettings/printerSettings1.bin', + 'xl/worksheets/_rels/sheet1.xml.rels' + ], + { + '[Content_Types].xml' => ['<Default Extension="bin"'], + 'xl/worksheets/sheet1.xml' => ['<pageMargins', '<pageSetup'] + } + ) end end