summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/tc_shared_strings_table.rb
diff options
context:
space:
mode:
authorJean Jacques Warmerdam <[email protected]>2013-07-24 12:32:54 +0200
committerJean Jacques Warmerdam <[email protected]>2013-07-24 12:32:54 +0200
commit88ee2b1ca8aee6bd14c838f247654f43c073fd2e (patch)
treef5414ad991971477ac7b0286ebb3067dc5ca2cf7 /test/workbook/tc_shared_strings_table.rb
parent35d3cc8b21bce0c4ce7b9ec4e29d52df4b5f9cc4 (diff)
parent7fb6629b6f1e56b3e012613ec8cfcda8628c0ca5 (diff)
downloadcaxlsx-88ee2b1ca8aee6bd14c838f247654f43c073fd2e.tar.gz
caxlsx-88ee2b1ca8aee6bd14c838f247654f43c073fd2e.zip
Merge branch 'master' of https://github.com/randym/axlsx
Diffstat (limited to 'test/workbook/tc_shared_strings_table.rb')
-rw-r--r--test/workbook/tc_shared_strings_table.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/workbook/tc_shared_strings_table.rb b/test/workbook/tc_shared_strings_table.rb
index e3c9bf7b..7a333f4f 100644
--- a/test/workbook/tc_shared_strings_table.rb
+++ b/test/workbook/tc_shared_strings_table.rb
@@ -24,6 +24,12 @@ class TestSharedStringsTable < Test::Unit::TestCase
assert_equal(sst.unique_count, 4)
end
+ def test_uses_workbook_xml_space
+ assert_equal(@p.workbook.xml_space, @p.workbook.shared_strings.xml_space)
+ @p.workbook.xml_space = :default
+ assert_equal(:default, @p.workbook.shared_strings.xml_space)
+ end
+
def test_valid_document
schema = Nokogiri::XML::Schema(File.open(Axlsx::SML_XSD))
doc = Nokogiri::XML(@p.workbook.shared_strings.to_xml_string)