summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_comment.rb
diff options
context:
space:
mode:
authorStefan Daschek <[email protected]>2013-07-03 16:37:35 +0200
committerStefan Daschek <[email protected]>2013-07-03 16:37:35 +0200
commit7bb62e8870ae369a9b2423c87d5e0875873c3834 (patch)
tree3a8b97764a3efb5de493276e7cc1c1d26eb80837 /test/workbook/worksheet/tc_comment.rb
parentc26177a9ec5de20a5e3ecbac635e8ce209102645 (diff)
downloadcaxlsx-7bb62e8870ae369a9b2423c87d5e0875873c3834.tar.gz
caxlsx-7bb62e8870ae369a9b2423c87d5e0875873c3834.zip
Escape special chars for comments’ text and author.
Diffstat (limited to 'test/workbook/worksheet/tc_comment.rb')
-rw-r--r--test/workbook/worksheet/tc_comment.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/workbook/worksheet/tc_comment.rb b/test/workbook/worksheet/tc_comment.rb
index e57409ca..9f30436d 100644
--- a/test/workbook/worksheet/tc_comment.rb
+++ b/test/workbook/worksheet/tc_comment.rb
@@ -5,7 +5,7 @@ class TestComment < Test::Unit::TestCase
p = Axlsx::Package.new
wb = p.workbook
@ws = wb.add_worksheet
- @c1 = @ws.add_comment :ref => 'A1', :text => 'penut machine', :author => 'crank', :visible => false
+ @c1 = @ws.add_comment :ref => 'A1', :text => 'text with special char <', :author => 'author with special char <', :visible => false
@c2 = @ws.add_comment :ref => 'C3', :text => 'rust bucket', :author => 'PO'
end
@@ -14,12 +14,12 @@ class TestComment < Test::Unit::TestCase
end
def test_author
- assert(@c1.author == 'crank')
+ assert(@c1.author == 'author with special char <')
assert(@c2.author == 'PO')
end
def test_text
- assert(@c1.text == 'penut machine')
+ assert(@c1.text == 'text with special char <')
assert(@c2.text == 'rust bucket')
end