summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_cat_axis.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-06-04 12:40:50 +0900
committerRandy Morgan <[email protected]>2012-06-04 12:40:50 +0900
commit6932311b84142bc1c3567e0adb12ce77b4d127e3 (patch)
treefa31120fce39b96533206d28d2ba8368234d2d85 /test/drawing/tc_cat_axis.rb
parent1b6dcf16d83099c0efe5aaa0e77b94c7ab029585 (diff)
downloadcaxlsx-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.rb6
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