summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_comment.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-01-22 04:46:46 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-26 17:20:58 +0800
commita86d4eef4b4551a48a5329bb993c3c6c39a1b1f3 (patch)
tree15c6b61eac64464b984b41d59906b02643ab372f /test/rdoc/test_rdoc_comment.rb
parentf7cbbc707413f7e1c71ac1839b0c8834550451e6 (diff)
[ruby/rdoc] Normalization of comment should check language
RDoc::Text#normalize_comment that is included RDoc::Comment always remove Ruby style comment indicator "#" and C style comment indicator "/**/", but should check language and remove only the language's comment indicator. https://github.com/ruby/rdoc/commit/ca68ba1e73
Diffstat (limited to 'test/rdoc/test_rdoc_comment.rb')
-rw-r--r--test/rdoc/test_rdoc_comment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_comment.rb b/test/rdoc/test_rdoc_comment.rb
index 9b3c105bb0..48d0042f16 100644
--- a/test/rdoc/test_rdoc_comment.rb
+++ b/test/rdoc/test_rdoc_comment.rb
@@ -241,6 +241,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
@comment.text = <<-TEXT
# comment
TEXT
+ @comment.language = :ruby
assert_same @comment, @comment.normalize