summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_comments.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-05 17:37:28 +0200
committerGeremia Taglialatela <[email protected]>2023-04-06 09:55:31 +0200
commita802d1d179f5ab56b419e1b47e62885d72b5384d (patch)
tree70e8cc79f12a4e17efb6dc0126cc0ed204669142 /test/workbook/worksheet/tc_comments.rb
parentb5d7a7a1917adb12e3ea04abe261a37f8aff7f56 (diff)
downloadcaxlsx-a802d1d179f5ab56b419e1b47e62885d72b5384d.tar.gz
caxlsx-a802d1d179f5ab56b419e1b47e62885d72b5384d.zip
Fix Layout/EmptyLineBetweenDefs offenses
``` rubocop --only Layout/EmptyLineBetweenDefs -a ```
Diffstat (limited to 'test/workbook/worksheet/tc_comments.rb')
-rw-r--r--test/workbook/worksheet/tc_comments.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_comments.rb b/test/workbook/worksheet/tc_comments.rb
index 68b3ac71..6b07b465 100644
--- a/test/workbook/worksheet/tc_comments.rb
+++ b/test/workbook/worksheet/tc_comments.rb
@@ -23,6 +23,7 @@ class TestComments < Test::Unit::TestCase
assert_nothing_raised { @ws.comments.add_comment(:author => 'bob', :text => 'Yes We Can', :ref => 'A1') }
assert_equal(@ws.comments.size, 3)
end
+
def test_authors
assert_equal(@ws.comments.authors.size, @ws.comments.size)
@ws.add_comment(:text => 'Yes We Can!', :author => 'bob', :ref => 'F1')
@@ -30,6 +31,7 @@ class TestComments < Test::Unit::TestCase
@ws.add_comment(:text => 'Yes We Can!', :author => 'bob', :ref => 'F1')
assert_equal(@ws.comments.authors.size, 3, 'only unique authors are returned')
end
+
def test_pn
assert_equal(@ws.comments.pn, Axlsx::COMMENT_PN % (@ws.index+1).to_s)
end