diff options
| author | Stephen Pike <[email protected]> | 2012-04-21 09:35:13 -0400 |
|---|---|---|
| committer | Stephen Pike <[email protected]> | 2012-04-21 09:35:13 -0400 |
| commit | a86acda991fda771ebc41011f9d7895bf46c8c1d (patch) | |
| tree | 9ab1d97e2803cad355495f57ad99555b53adac55 | |
| parent | 8910b0ae5baa4e6371352bd4eac237fb3e7b10a4 (diff) | |
| download | caxlsx-a86acda991fda771ebc41011f9d7895bf46c8c1d.tar.gz caxlsx-a86acda991fda771ebc41011f9d7895bf46c8c1d.zip | |
Update conditional formatting tests to account for 3 cfvo objs in icon sets
| -rw-r--r-- | test/workbook/worksheet/tc_conditional_formatting.rb | 2 | ||||
| -rw-r--r-- | test/workbook/worksheet/tc_icon_set.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/workbook/worksheet/tc_conditional_formatting.rb b/test/workbook/worksheet/tc_conditional_formatting.rb index 0dcb1a7c..6b2c6c3b 100644 --- a/test/workbook/worksheet/tc_conditional_formatting.rb +++ b/test/workbook/worksheet/tc_conditional_formatting.rb @@ -51,7 +51,7 @@ class TestConditionalFormatting < Test::Unit::TestCase cfs.last.rules.last.type = :iconSet doc = Nokogiri::XML.parse(cfs.last.to_xml_string) - assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet//cfvo").size, 2) + assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet//cfvo").size, 3) assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet[@iconSet='5Rating']").size, 1) end diff --git a/test/workbook/worksheet/tc_icon_set.rb b/test/workbook/worksheet/tc_icon_set.rb index bb90276c..5c442068 100644 --- a/test/workbook/worksheet/tc_icon_set.rb +++ b/test/workbook/worksheet/tc_icon_set.rb @@ -39,7 +39,7 @@ class TestIconSet < Test::Unit::TestCase def test_to_xml_string doc = Nokogiri::XML.parse(@icon_set.to_xml_string) assert_equal(doc.xpath(".//iconSet[@iconSet='3TrafficLights1'][@percent='true'][@reverse='false'][@showValue='true']").size, 1) - assert_equal(doc.xpath(".//iconSet//cfvo").size, 2) + assert_equal(doc.xpath(".//iconSet//cfvo").size, 3) end end |
