From aad14cd003e08fae6fdb29ab675b975c9619b8c3 Mon Sep 17 00:00:00 2001 From: johnnyshields Date: Sat, 1 Apr 2023 20:13:54 +0900 Subject: Add ensure to specs --- test/tc_axlsx.rb | 2 +- test/workbook/tc_workbook.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tc_axlsx.rb b/test/tc_axlsx.rb index a4069cfe..24c233ac 100644 --- a/test/tc_axlsx.rb +++ b/test/tc_axlsx.rb @@ -148,7 +148,7 @@ class TestAxlsx < Test::Unit::TestCase Axlsx::escape_formulas = false assert_equal false, Axlsx::escape_formulas - + ensure Axlsx.instance_variable_set(:@escape_formulas, nil) end end diff --git a/test/workbook/tc_workbook.rb b/test/workbook/tc_workbook.rb index 99ed69f4..958a1a7b 100644 --- a/test/workbook/tc_workbook.rb +++ b/test/workbook/tc_workbook.rb @@ -193,7 +193,7 @@ class TestWorkbook < Test::Unit::TestCase assert @wb.add_worksheet.escape_formulas assert_false @wb.add_worksheet(escape_formulas: false).escape_formulas assert @wb.add_worksheet(escape_formulas: true).escape_formulas - + ensure Axlsx.instance_variable_set(:@escape_formulas, nil) end end -- cgit v1.2.3