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_sheet_format_pr.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_sheet_format_pr.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_sheet_format_pr.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/workbook/worksheet/tc_sheet_format_pr.rb b/test/workbook/worksheet/tc_sheet_format_pr.rb index 6b19860f..b7d7b929 100644 --- a/test/workbook/worksheet/tc_sheet_format_pr.rb +++ b/test/workbook/worksheet/tc_sheet_format_pr.rb @@ -74,13 +74,13 @@ class TestSheetFormatPr < Test::Unit::TestCase def test_to_xml_string doc = Nokogiri::XML(@sheet_format_pr.to_xml_string) - assert doc.xpath("sheetFormatPr[@thickBottom='true']") + assert doc.xpath("sheetFormatPr[@thickBottom=1]") assert doc.xpath("sheetFormatPr[@baseColWidth=5]") assert doc.xpath("sheetFormatPr[@default_col_width=7.2]") assert doc.xpath("sheetFormatPr[@default_row_height=5.2]") - assert doc.xpath("sheetFormatPr[@custom_height='true']") - assert doc.xpath("sheetFormatPr[@zero_height='false']") - assert doc.xpath("sheetFormatPr[@thick_top='true']") + assert doc.xpath("sheetFormatPr[@custom_height=1]") + assert doc.xpath("sheetFormatPr[@zero_height=0]") + assert doc.xpath("sheetFormatPr[@thick_top=1]") assert doc.xpath("sheetFormatPr[@outline_level_row=0]") assert doc.xpath("sheetFormatPr[@outline_level_col=0]") end |
