summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet/tc_styles.rb
diff options
context:
space:
mode:
authorAnkur Sethi <[email protected]>2013-05-26 13:27:31 -0300
committerAnkur Sethi <[email protected]>2013-05-26 12:29:22 -0400
commite23558c0bd7bb9027c8ce872ca2b08089b7d1c78 (patch)
tree9b81e7c9ed0d6e2a6a25838684a6af51068dcfbb /test/stylesheet/tc_styles.rb
parent061d16b216f14e90f535ccd36e2eb902b4af3b9e (diff)
downloadcaxlsx-e23558c0bd7bb9027c8ce872ca2b08089b7d1c78.tar.gz
caxlsx-e23558c0bd7bb9027c8ce872ca2b08089b7d1c78.zip
Update test for conditional formatting bg_color
Diffstat (limited to 'test/stylesheet/tc_styles.rb')
-rw-r--r--test/stylesheet/tc_styles.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stylesheet/tc_styles.rb b/test/stylesheet/tc_styles.rb
index b9d0b28a..98c8e3ef 100644
--- a/test/stylesheet/tc_styles.rb
+++ b/test/stylesheet/tc_styles.rb
@@ -150,7 +150,7 @@ class TestStyles < Test::Unit::TestCase
assert_equal(@styles.parse_fill_options(:bg_color => "DE").class, Fixnum, "return index of fill if not :dxf type")
assert_equal(@styles.parse_fill_options(:bg_color => "DE", :type => :dxf).class, Axlsx::Fill, "return fill object if :dxf type")
f = @styles.parse_fill_options(:bg_color => "DE", :type => :dxf)
- assert(f.fill_type.fgColor.rgb == "FFDEDEDE")
+ assert(f.fill_type.bgColor.rgb == "FFDEDEDE")
end
def test_parse_protection_options
@@ -210,7 +210,7 @@ class TestStyles < Test::Unit::TestCase
assert_equal(0, style, "returns the zero-based dxfId")
dxf = @styles.dxfs.last
- assert_equal(@styles.dxfs.last.fill.fill_type.fgColor.rgb, "FF000000", "fill created with color")
+ assert_equal(@styles.dxfs.last.fill.fill_type.bgColor.rgb, "FF000000", "fill created with color")
assert_equal(font_count, (@styles.fonts.size), "font not created under styles")
assert_equal(fill_count, (@styles.fills.size), "fill not created under styles")