summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/tc_axlsx.rb2
-rw-r--r--test/workbook/tc_workbook.rb2
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