diff options
| author | Randy Morgan <[email protected]> | 2012-05-13 14:40:31 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-13 14:40:31 +0900 |
| commit | c2bdd517720d8f4640e7e06962417a4c5b0f02c7 (patch) | |
| tree | d920ed1729d164fbcb4a13eda2c9236ca564dea3 /test/stylesheet/tc_gradient_fill.rb | |
| parent | d46c97f6576aceaf30424b221188d80c7a4ecf64 (diff) | |
| download | caxlsx-c2bdd517720d8f4640e7e06962417a4c5b0f02c7.tar.gz caxlsx-c2bdd517720d8f4640e7e06962417a4c5b0f02c7.zip | |
MOAR specs
Diffstat (limited to 'test/stylesheet/tc_gradient_fill.rb')
| -rw-r--r-- | test/stylesheet/tc_gradient_fill.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/stylesheet/tc_gradient_fill.rb b/test/stylesheet/tc_gradient_fill.rb index c252a498..546941d7 100644 --- a/test/stylesheet/tc_gradient_fill.rb +++ b/test/stylesheet/tc_gradient_fill.rb @@ -61,4 +61,12 @@ class TestGradientFill < Test::Unit::TestCase assert(@item.stop.size == 1) assert(@item.stop.last.is_a?(Axlsx::GradientStop)) end + + def test_to_xml_string + @item.stop << Axlsx::GradientStop.new(Axlsx::Color.new(:rgb => "000000"), 0.5) + @item.stop << Axlsx::GradientStop.new(Axlsx::Color.new(:rgb => "FFFFFF"), 0.5) + @item.type = :path + doc = Nokogiri::XML(@item.to_xml_string) + assert(doc.xpath("//color[@rgb='FF000000']")) + end end |
