diff options
| author | Randy Morgan <[email protected]> | 2013-01-15 21:52:08 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-01-15 21:52:08 +0900 |
| commit | bd099af6f8fe954eabc1db33c9ad3990629ddff1 (patch) | |
| tree | 6995304d07c24e94f120c29d0cfee55bb088be9a /test/tc_axlsx.rb | |
| parent | 8f76f395b6d233827e29104052c3d775a5c885ad (diff) | |
| download | caxlsx-bd099af6f8fe954eabc1db33c9ad3990629ddff1.tar.gz caxlsx-bd099af6f8fe954eabc1db33c9ad3990629ddff1.zip | |
added tests for trust_input
Diffstat (limited to 'test/tc_axlsx.rb')
| -rw-r--r-- | test/tc_axlsx.rb | 9 |
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 |
