diff options
| author | Randy Morgan <[email protected]> | 2012-04-09 18:57:17 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-04-09 18:57:17 +0900 |
| commit | 9b48a368014be3ba94d69d6db505569c89ec8e9f (patch) | |
| tree | 57bfb57c7cad4606b2258a8b1b065b027dbea3c0 /test/stylesheet | |
| parent | c4431554cab9f74095dc2e66f4b7161608d1e6ff (diff) | |
| download | caxlsx-9b48a368014be3ba94d69d6db505569c89ec8e9f.tar.gz caxlsx-9b48a368014be3ba94d69d6db505569c89ec8e9f.zip | |
no symbol sorting in 1.8.7
Diffstat (limited to 'test/stylesheet')
| -rw-r--r-- | test/stylesheet/tc_styles.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stylesheet/tc_styles.rb b/test/stylesheet/tc_styles.rb index b6d99612..31461ae3 100644 --- a/test/stylesheet/tc_styles.rb +++ b/test/stylesheet/tc_styles.rb @@ -30,7 +30,7 @@ class TestStyles < Test::Unit::TestCase s = @styles.add_style :border => { :style => :thin, :color => "0000FFFF", :edges => [:top, :bottom] } parts = @styles.borders.last.prs parts.each { |pr| assert_equal(pr.color.rgb, "0000FFFF", "Style is applied to #{pr.name} properly") } - assert((parts.map { |pr| pr.name }.sort && [:bottom, :top]).size == 2, "specify two edges, and you get two border prs") + assert((parts.map { |pr| pr.name.to_s }.sort && ['bottom', 'top']).size == 2, "specify two edges, and you get two border prs") end def test_do_not_alter_options_in_add_style |
