summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_two_cell_anchor.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-09-12 22:13:09 +0900
committerRandy Morgan <[email protected]>2013-09-13 00:08:39 +0900
commitb5a6263ec3ec0a729c9b2bec86c22d1ead33eb65 (patch)
tree4787d30e49eb8425885a37af9008aafa69fb9419 /test/drawing/tc_two_cell_anchor.rb
parent923e7b7ff9157bdfe95584b8d311e2f6099ab71d (diff)
downloadcaxlsx-b5a6263ec3ec0a729c9b2bec86c22d1ead33eb65.tar.gz
caxlsx-b5a6263ec3ec0a729c9b2bec86c22d1ead33eb65.zip
repair pivot table data ref populate and bring coverage back up to 100%
Diffstat (limited to 'test/drawing/tc_two_cell_anchor.rb')
-rw-r--r--test/drawing/tc_two_cell_anchor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/drawing/tc_two_cell_anchor.rb b/test/drawing/tc_two_cell_anchor.rb
index 66f8bd58..db84521d 100644
--- a/test/drawing/tc_two_cell_anchor.rb
+++ b/test/drawing/tc_two_cell_anchor.rb
@@ -10,9 +10,6 @@ class TestTwoCellAnchor < Test::Unit::TestCase
@anchor = chart.graphic_frame.anchor
end
- def teardown
- end
-
def test_initialization
assert(@anchor.from.col == 0)
assert(@anchor.from.row == 0)
@@ -20,6 +17,9 @@ class TestTwoCellAnchor < Test::Unit::TestCase
assert(@anchor.to.row == 10)
end
+ def test_index
+ assert_equal(@anchor.index, @anchor.drawing.anchors.index(@anchor))
+ end
def test_options
assert_raise(ArgumentError, 'invalid start_at') { @ws.add_chart Axlsx::Chart, :start_at=>"1" }