summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_row.rb
diff options
context:
space:
mode:
authorJurriaan Pruis <[email protected]>2014-04-04 11:39:25 +0200
committerJurriaan Pruis <[email protected]>2014-04-04 11:39:25 +0200
commit5ccab460b65f597398f1d8a1b2a5a83039b80a9e (patch)
tree6fa3a9e38f81e6f59693acf8861b12938d0030bf /test/workbook/worksheet/tc_row.rb
parentc649ee7d5ac699d0fc5a36550f502216f9b7318f (diff)
downloadcaxlsx-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_row.rb')
-rw-r--r--test/workbook/worksheet/tc_row.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_row.rb b/test/workbook/worksheet/tc_row.rb
index 8a057c26..808e0138 100644
--- a/test/workbook/worksheet/tc_row.rb
+++ b/test/workbook/worksheet/tc_row.rb
@@ -111,7 +111,7 @@ class TestRow < Test::Unit::TestCase
@row.add_cell 1
@row.height = 20
r_s_xml = Nokogiri::XML(@row.to_xml_string(0, ''))
- assert_equal(r_s_xml.xpath(".//row[@r=1][@ht=20][@customHeight='true']").size, 1)
+ assert_equal(r_s_xml.xpath(".//row[@r=1][@ht=20][@customHeight=1]").size, 1)
end
end