aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_parser_simple.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-23 02:32:20 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-23 02:32:20 +0000
commit400afca88a0adb5a380925dea61220e08a04022f (patch)
tree8820f8f9892d6dc75e4dd0f3110cd91844f15736 /test/rdoc/test_rdoc_parser_simple.rb
parent30014a61567b1b672ae46ecf5ff27c059f6c4eea (diff)
downloadruby-400afca88a0adb5a380925dea61220e08a04022f.tar.gz
Update to RDoc 2.5.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_parser_simple.rb')
-rw-r--r--test/rdoc/test_rdoc_parser_simple.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_parser_simple.rb b/test/rdoc/test_rdoc_parser_simple.rb
index 6edb51481a..a83f105edd 100644
--- a/test/rdoc/test_rdoc_parser_simple.rb
+++ b/test/rdoc/test_rdoc_parser_simple.rb
@@ -22,6 +22,15 @@ class TestRDocParserSimple < MiniTest::Unit::TestCase
@tempfile.close
end
+ def test_initialize_metadata
+ parser = util_parser ":unhandled: \n# :markup: not rdoc\n"
+
+ assert_equal nil, @top_level.metadata['unhandled']
+ assert_equal 'not rdoc', @top_level.metadata['markup']
+
+ assert_equal ":unhandled: \n# :markup: not rdoc\n", parser.content
+ end
+
def test_remove_coding_comment
parser = util_parser <<-TEXT
# -*- mode: rdoc; coding: utf-8; fill-column: 74; -*-