diff options
| author | Randy Morgan <[email protected]> | 2012-03-26 21:25:58 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-03-26 21:25:58 +0900 |
| commit | e64772f7552a4548b5ebb4f42b3fcaa5f4fd1e17 (patch) | |
| tree | 39c91beaa0d7d32b469911c42603cb4ed75e0808 /test/workbook | |
| parent | c7986cb42c9055a1eb1acc37eaeee3859d3f9d4e (diff) | |
| download | caxlsx-e64772f7552a4548b5ebb4f42b3fcaa5f4fd1e17.tar.gz caxlsx-e64772f7552a4548b5ebb4f42b3fcaa5f4fd1e17.zip | |
fix specs for cell when serializing to string as hashes are not ordered!
Diffstat (limited to 'test/workbook')
| -rw-r--r-- | test/workbook/worksheet/tc_cell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb index fb3814ae..a5b0442f 100644 --- a/test/workbook/worksheet/tc_cell.rb +++ b/test/workbook/worksheet/tc_cell.rb @@ -227,7 +227,7 @@ class TestCell < Test::Unit::TestCase @c.to_xml(xml) end c_xml = Nokogiri::XML(builder.to_xml(:save_with => 0)) - assert_equal(@c.to_xml_string, c_xml.xpath("/c").to_xml(:save_with => 0)) + assert_equal(c_xml.xpath("/c[@s=1]").size, 1) end def test_to_xml # TODO This could use some much more stringent testing related to the xml content generated! |
