test/regression/test_panes01.rb in write_xlsx-0.85.5 vs test/regression/test_panes01.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_panes01
@xlsx = 'panes01.xlsx'
- workbook = WriteXLSX.new(@xlsx)
+ workbook = WriteXLSX.new(@io)
worksheet01 = workbook.add_worksheet
worksheet02 = workbook.add_worksheet
worksheet03 = workbook.add_worksheet
worksheet04 = workbook.add_worksheet
worksheet05 = workbook.add_worksheet
@@ -54,13 +54,8 @@
worksheet11.split_panes(0, 17.57)
worksheet12.split_panes(15, 8.46)
worksheet13.split_panes(45, 54.14)
workbook.close
- compare_xlsx_for_regression(
- File.join(@regression_output, @xlsx),
- @xlsx,
- nil,
- nil
- )
+ compare_for_regression
end
end