summaryrefslogtreecommitdiffhomepage
path: root/test/workbook
diff options
context:
space:
mode:
authorAdam Gardiner <[email protected]>2013-04-27 16:33:35 +0100
committerAdam Gardiner <[email protected]>2013-04-27 16:33:35 +0100
commite76c93bcbf842f01a02a2485873c5eeed3838bf4 (patch)
tree0d1bdf6ee3e263b0c170dd1bd3a3cf7b4ad95f70 /test/workbook
parentbd6a3ebf91fd0677f3d31ecba4a22b9edb812406 (diff)
downloadcaxlsx-e76c93bcbf842f01a02a2485873c5eeed3838bf4.tar.gz
caxlsx-e76c93bcbf842f01a02a2485873c5eeed3838bf4.zip
Revert changes to cell serialization
Diffstat (limited to 'test/workbook')
-rw-r--r--test/workbook/worksheet/tc_cell.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb
index 9b8cd769..208b15e0 100644
--- a/test/workbook/worksheet/tc_cell.rb
+++ b/test/workbook/worksheet/tc_cell.rb
@@ -275,20 +275,7 @@ class TestCell < Test::Unit::TestCase
end
doc = Nokogiri::XML(ws.to_xml_string)
assert(doc.xpath("//f[@text()='IF(2+2=4,4,5)']"))
- end
- def test_to_xml_string_with_leading_or_trailing_spaces
- # Check that xml:space="preserve" has been added when cell contains leading or trailing spaces
- @c.type = :string
- @c.value = " a"
- c_xml = Nokogiri::XML(@c.to_xml_string(1,1))
- assert(c_xml.xpath("//t/@xml:space='preserve'"))
- @c.value = "a "
- c_xml = Nokogiri::XML(@c.to_xml_string(1,1))
- assert(c_xml.xpath("//t/@xml:space='preserve'"))
- @c.value = "a"
- c_xml = Nokogiri::XML(@c.to_xml_string(1,1))
- assert(!c_xml.xpath("//t/@xml:space='preserve'"))
end
def test_font_size_with_custom_style_and_no_sz