summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-16 16:35:22 +0900
committerRandy Morgan <[email protected]>2012-02-16 16:35:22 +0900
commit6e8b4b2d638a9128cf79fa5c5897937af1f06c18 (patch)
treea0c03772e7954ab4b856a0ec9574d73b70505744 /test/stylesheet
parentcd890f6c5a84f6b5c5458f4c6edeab9103bf1cee (diff)
downloadcaxlsx-6e8b4b2d638a9128cf79fa5c5897937af1f06c18.tar.gz
caxlsx-6e8b4b2d638a9128cf79fa5c5897937af1f06c18.zip
more specs for cell_alignment cell and chart
Diffstat (limited to 'test/stylesheet')
-rw-r--r--test/stylesheet/tc_cell_alignment.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/stylesheet/tc_cell_alignment.rb b/test/stylesheet/tc_cell_alignment.rb
index a0cb4817..66f95518 100644
--- a/test/stylesheet/tc_cell_alignment.rb
+++ b/test/stylesheet/tc_cell_alignment.rb
@@ -5,8 +5,7 @@ class TestCellAlignment < Test::Unit::TestCase
def setup
@item = Axlsx::CellAlignment.new
end
- def teardown
- end
+
def test_initialiation
assert_equal(@item.horizontal, nil)
assert_equal(@item.vertical, nil)
@@ -17,7 +16,13 @@ class TestCellAlignment < Test::Unit::TestCase
assert_equal(@item.justifyLastLine, nil)
assert_equal(@item.shrinkToFit, nil)
assert_equal(@item.readingOrder, nil)
-
+ options = { :horizontal => :left, :vertical => :top, :textRotation => 3,
+ :wrapText => true, :indent => 2, :relativeIndent => 5,
+ :justifyLastLine => true, :shrinkToFit => true, :readingOrder => 2 }
+ ca = Axlsx::CellAlignment.new options
+ options.each do |key, value|
+ assert_equal(ca.send(key.to_sym),value)
+ end
end
def test_horizontal