diff options
| author | Randy Morgan <[email protected]> | 2012-06-04 12:40:50 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-06-04 12:40:50 +0900 |
| commit | 6932311b84142bc1c3567e0adb12ce77b4d127e3 (patch) | |
| tree | fa31120fce39b96533206d28d2ba8368234d2d85 /test/drawing/tc_cat_axis.rb | |
| parent | 1b6dcf16d83099c0efe5aaa0e77b94c7ab029585 (diff) | |
| download | caxlsx-6932311b84142bc1c3567e0adb12ce77b4d127e3.tar.gz caxlsx-6932311b84142bc1c3567e0adb12ce77b4d127e3.zip | |
The spec indicates that the percent sign should be included but MS Excel chokes on it.
Diffstat (limited to 'test/drawing/tc_cat_axis.rb')
| -rw-r--r-- | test/drawing/tc_cat_axis.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/drawing/tc_cat_axis.rb b/test/drawing/tc_cat_axis.rb index a4f25a1c..6529b45d 100644 --- a/test/drawing/tc_cat_axis.rb +++ b/test/drawing/tc_cat_axis.rb @@ -10,7 +10,7 @@ class TestCatAxis < Test::Unit::TestCase def test_initialization assert_equal(@axis.auto, 1, "axis auto default incorrect") assert_equal(@axis.lblAlgn, :ctr, "label align default incorrect") - assert_equal(@axis.lblOffset, "100%", "label offset default incorrect") + assert_equal(@axis.lblOffset, "100", "label offset default incorrect") end def test_auto @@ -24,8 +24,8 @@ class TestCatAxis < Test::Unit::TestCase end def test_lblOffset - assert_raise(ArgumentError, "requires valid label offset") { @axis.lblOffset = 100 } - assert_nothing_raised("accepts valid label offset") { @axis.lblOffset = "20%" } + assert_raise(ArgumentError, "requires valid label offset") { @axis.lblOffset = 'foo' } + assert_nothing_raised("accepts valid label offset") { @axis.lblOffset = "20" } end end |
