diff options
| author | Zsolt Kozaroczy <[email protected]> | 2019-12-29 19:11:05 +0100 |
|---|---|---|
| committer | Stefan Daschek <[email protected]> | 2019-12-29 19:11:05 +0100 |
| commit | e65ec48bc86379efed0c1b87a13bff14930416d5 (patch) | |
| tree | acda1d6f5dbaccb828d2192c4f28cdac56c49785 /test/tc_axlsx.rb | |
| parent | 0a223011a26949ddc00eba882005daee7afeb6a6 (diff) | |
| download | caxlsx-e65ec48bc86379efed0c1b87a13bff14930416d5.tar.gz caxlsx-e65ec48bc86379efed0c1b87a13bff14930416d5.zip | |
Escape special characters in charts (#40)
Fixes #37
Diffstat (limited to 'test/tc_axlsx.rb')
| -rw-r--r-- | test/tc_axlsx.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/tc_axlsx.rb b/test/tc_axlsx.rb index 3d6a2e70..55bca1f4 100644 --- a/test/tc_axlsx.rb +++ b/test/tc_axlsx.rb @@ -24,8 +24,14 @@ class TestAxlsx < Test::Unit::TestCase def test_trust_input_can_be_set_to_true + # Class variables like this are not reset between test runs, so we have + # to save and restore the original value manually. + old = Axlsx.trust_input + Axlsx.trust_input = true assert_equal true, Axlsx.trust_input + + Axlsx.trust_input = old end def test_cell_range_relative p = Axlsx::Package.new |
