test/regression/test_hyperlink03.rb in write_xlsx-0.85.5 vs test/regression/test_hyperlink03.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_hyperlink03 @xlsx = 'hyperlink03.xlsx' - workbook = WriteXLSX.new(@xlsx) + workbook = WriteXLSX.new(@io) worksheet1 = workbook.add_worksheet worksheet2 = workbook.add_worksheet worksheet1.write_url('A1', 'http://www.perl.org/') worksheet1.write_url('D4', 'http://www.perl.org/') @@ -25,8 +25,8 @@ worksheet2.write_url('C2', 'http://www.google.com/') worksheet2.write_url('C5', 'http://www.cpan.org/') worksheet2.write_url('C7', 'http://www.perl.org/') workbook.close - compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx) + compare_for_regression end end