summaryrefslogtreecommitdiffhomepage
path: root/test/tc_axlsx.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_axlsx.rb')
-rw-r--r--test/tc_axlsx.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tc_axlsx.rb b/test/tc_axlsx.rb
index 0f94b3e5..1be9166c 100644
--- a/test/tc_axlsx.rb
+++ b/test/tc_axlsx.rb
@@ -18,6 +18,15 @@ class TestAxlsx < Test::Unit::TestCase
assert_equal(Axlsx.cell_range([]), "")
end
+ def test_do_not_trust_input_by_default
+ assert_equal false, Axlsx.trust_input
+ end
+
+
+ def test_trust_input_can_be_set_to_true
+ Axlsx.trust_input = true
+ assert_equal true, Axlsx.trust_input
+ end
def test_cell_range_relative
p = Axlsx::Package.new
ws = p.workbook.add_worksheet