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

- old
+ new

@@ -5,27 +5,25 @@ def setup setup_dir_var end def teardown - File.delete(@xlsx) if File.exist?(@xlsx) + @tempfile.close(true) end def test_escapes05 @xlsx = 'escapes05.xlsx' - workbook = WriteXLSX.new(@xlsx) + workbook = WriteXLSX.new(@io) worksheet1 = workbook.add_worksheet('Start') worksheet2 = workbook.add_worksheet('A & B') worksheet1.write_url('A1', "internal:'A & B'!A1", 'Jump to A & B') workbook.close - compare_xlsx_for_regression( - File.join(@regression_output, @xlsx), - @xlsx, - nil, - { - 'xl/workbook.xml' => ['<workbookView'] - } - ) + compare_for_regression( + nil, + { + 'xl/workbook.xml' => ['<workbookView'] + } + ) end end