summaryrefslogtreecommitdiff
path: root/test/rdoc/minitest_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/minitest_helper.rb')
-rw-r--r--test/rdoc/minitest_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rdoc/minitest_helper.rb b/test/rdoc/minitest_helper.rb
index 9fb0cd676b..5db0c315ef 100644
--- a/test/rdoc/minitest_helper.rb
+++ b/test/rdoc/minitest_helper.rb
@@ -97,8 +97,9 @@ class RDoc::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Un
# Creates an RDoc::Comment with +text+ which was defined on +top_level+.
# By default the comment has the 'rdoc' format.
- def comment text, top_level = @top_level
- RDoc::Comment.new text, top_level
+ def comment text, top_level = @top_level, language = nil
+ comment = RDoc::Comment.new text, top_level, language
+ comment
end
##