diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-08 00:12:18 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-08 00:12:18 +0200 |
| commit | 5d68145521afe5c5912ceebae2f7e784eb5f8954 (patch) | |
| tree | 5289c654cb213de98a6c812fbe581e2609f6615a /test/workbook/worksheet/tc_conditional_formatting.rb | |
| parent | 7f077b55bf963c6e855c6c9066c6aed4926fb8e3 (diff) | |
| download | caxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.tar.gz caxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.zip | |
Fix EmptyLines related offenses
Diffstat (limited to 'test/workbook/worksheet/tc_conditional_formatting.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_conditional_formatting.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/workbook/worksheet/tc_conditional_formatting.rb b/test/workbook/worksheet/tc_conditional_formatting.rb index d9652ebf..cc885255 100644 --- a/test/workbook/worksheet/tc_conditional_formatting.rb +++ b/test/workbook/worksheet/tc_conditional_formatting.rb @@ -1,7 +1,6 @@ require 'tc_helper.rb' class TestConditionalFormatting < Test::Unit::TestCase - def setup p = Axlsx::Package.new @ws = p.workbook.add_worksheet :name=>"hmmm" @@ -17,7 +16,6 @@ class TestConditionalFormatting < Test::Unit::TestCase end def test_add_as_rule - color_scale = Axlsx::ColorScale.new do |cs| cs.colors.first.rgb = "FFDFDFDF" cs.colors.last.rgb = "FF00FF00" @@ -57,11 +55,9 @@ class TestConditionalFormatting < Test::Unit::TestCase doc = Nokogiri::XML.parse(cfs.last.to_xml_string) assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet//cfvo").size, 3) assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet[@iconSet='5Rating']").size, 1) - end def test_add_as_hash - color_scale = Axlsx::ColorScale.new do |cs| cs.colors.first.rgb = "FFDFDFDF" cs.colors.last.rgb = "FF00FF00" @@ -97,7 +93,6 @@ class TestConditionalFormatting < Test::Unit::TestCase doc = Nokogiri::XML.parse(cfs.last.to_xml_string) assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet//cfvo").size, 3) assert_equal(doc.xpath(".//conditionalFormatting//cfRule//iconSet[@iconSet='5Rating']").size, 1) - end def test_single_rule @@ -220,5 +215,4 @@ class TestConditionalFormatting < Test::Unit::TestCase assert_nothing_raised { @cfr.timePeriod = :today } assert_equal(@cfr.timePeriod, :today) end - end |
