summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/tc_workbook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/workbook/tc_workbook.rb')
-rw-r--r--test/workbook/tc_workbook.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/workbook/tc_workbook.rb b/test/workbook/tc_workbook.rb
index a9bd339c..99ed69f4 100644
--- a/test/workbook/tc_workbook.rb
+++ b/test/workbook/tc_workbook.rb
@@ -164,8 +164,6 @@ class TestWorkbook < Test::Unit::TestCase
end
def test_escape_formulas
- old = Axlsx::escape_formulas
-
Axlsx::escape_formulas = false
p = Axlsx::Package.new
@wb = p.workbook
@@ -196,6 +194,6 @@ class TestWorkbook < Test::Unit::TestCase
assert_false @wb.add_worksheet(escape_formulas: false).escape_formulas
assert @wb.add_worksheet(escape_formulas: true).escape_formulas
- Axlsx::escape_formulas = old
+ Axlsx.instance_variable_set(:@escape_formulas, nil)
end
end