summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorjohnnyshields <[email protected]>2023-04-01 20:13:54 +0900
committerjohnnyshields <[email protected]>2023-04-01 20:13:54 +0900
commitaad14cd003e08fae6fdb29ab675b975c9619b8c3 (patch)
tree5dba576cdafe9a4680785379c9547b01bee6042c /test
parent377ad94928c3f76e36d0c2aef05fca5dd13e1aae (diff)
downloadcaxlsx-aad14cd003e08fae6fdb29ab675b975c9619b8c3.tar.gz
caxlsx-aad14cd003e08fae6fdb29ab675b975c9619b8c3.zip
Add ensure to specs
Diffstat (limited to 'test')
-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