summaryrefslogtreecommitdiffhomepage
path: root/test/workbook
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-05-08 09:55:43 +0900
committerRandy Morgan <[email protected]>2012-05-08 09:55:43 +0900
commitf12d21414f6272903ff274ec1a3add358bde30fb (patch)
treea16d645fa1b55f1f478dcde52c3b157cbd01fb74 /test/workbook
parent754e2226d618260c4895cf15e54f5c8190345f8e (diff)
downloadcaxlsx-f12d21414f6272903ff274ec1a3add358bde30fb.tar.gz
caxlsx-f12d21414f6272903ff274ec1a3add358bde30fb.zip
worksheet comments step 2. Needs docs and specs - but it works in Excel
Diffstat (limited to 'test/workbook')
-rw-r--r--test/workbook/worksheet/tc_worksheet.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/workbook/worksheet/tc_worksheet.rb b/test/workbook/worksheet/tc_worksheet.rb
index dbb48887..e33506cd 100644
--- a/test/workbook/worksheet/tc_worksheet.rb
+++ b/test/workbook/worksheet/tc_worksheet.rb
@@ -329,9 +329,9 @@ class TestWorksheet < Test::Unit::TestCase
c = @ws.add_chart Axlsx::Pie3DChart
assert_equal(@ws.relationships.size, 1, "multiple charts still only result in one relationship")
c = @ws.add_comment :text => 'builder', :author => 'bob', :ref => @ws.rows.last.cells.last
- assert_equal(@ws.relationships.size, 2, "adding a comment adds a relationship")
+ assert_equal(@ws.relationships.size, 4, "adding a comment adds 3 relationships")
c = @ws.add_comment :text => 'not that is a comment!', :author => 'travis', :ref => "A1"
- assert_equal(@ws.relationships.size, 3, "adding multiple comments result in multiple relationships")
+ assert_equal(@ws.relationships.size, 4, "adding multiple comments in the same worksheet should not add any additional comment relationships")
end