diff options
| author | Jurriaan Pruis <[email protected]> | 2014-04-04 11:39:25 +0200 |
|---|---|---|
| committer | Jurriaan Pruis <[email protected]> | 2014-04-04 11:39:25 +0200 |
| commit | 5ccab460b65f597398f1d8a1b2a5a83039b80a9e (patch) | |
| tree | 6fa3a9e38f81e6f59693acf8861b12938d0030bf /test/workbook/worksheet/tc_header_footer.rb | |
| parent | c649ee7d5ac699d0fc5a36550f502216f9b7318f (diff) | |
| download | caxlsx-5ccab460b65f597398f1d8a1b2a5a83039b80a9e.tar.gz caxlsx-5ccab460b65f597398f1d8a1b2a5a83039b80a9e.zip | |
Fix boolean values so the output matches Excel and works on Numbers
Use 1 or 0 instead of 'true' or 'false' in the XML output
Diffstat (limited to 'test/workbook/worksheet/tc_header_footer.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_header_footer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/workbook/worksheet/tc_header_footer.rb b/test/workbook/worksheet/tc_header_footer.rb index 4d78aa9d..caf1b9df 100644 --- a/test/workbook/worksheet/tc_header_footer.rb +++ b/test/workbook/worksheet/tc_header_footer.rb @@ -109,7 +109,7 @@ class TestHeaderFooter < Test::Unit::TestCase ) doc = Nokogiri::XML.parse(@hf.to_xml_string) - assert_equal(1, doc.xpath(".//headerFooter[@differentFirst='true'][@differentOddEven='true']").size) + assert_equal(1, doc.xpath(".//headerFooter[@differentFirst=1][@differentOddEven=1]").size) assert_equal(1, doc.xpath(".//headerFooter/oddHeader").size) assert_equal('oh', doc.xpath(".//headerFooter/oddHeader").text) @@ -134,7 +134,7 @@ class TestHeaderFooter < Test::Unit::TestCase ) doc = Nokogiri::XML.parse(@hf.to_xml_string) - assert_equal(1, doc.xpath(".//headerFooter[@differentOddEven='false']").size) + assert_equal(1, doc.xpath(".//headerFooter[@differentOddEven=0]").size) assert_equal(0, doc.xpath(".//headerFooter[@differentFirst]").size) assert_equal(1, doc.xpath(".//headerFooter/oddHeader").size) |
