From a86acda991fda771ebc41011f9d7895bf46c8c1d Mon Sep 17 00:00:00 2001 From: Stephen Pike Date: Sat, 21 Apr 2012 09:35:13 -0400 Subject: Update conditional formatting tests to account for 3 cfvo objs in icon sets --- test/workbook/worksheet/tc_conditional_formatting.rb | 2 +- test/workbook/worksheet/tc_icon_set.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3