diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-23 02:32:20 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-23 02:32:20 +0000 |
commit | 400afca88a0adb5a380925dea61220e08a04022f (patch) | |
tree | 8820f8f9892d6dc75e4dd0f3110cd91844f15736 /test/rdoc/test_rdoc_parser_c.rb | |
parent | 30014a61567b1b672ae46ecf5ff27c059f6c4eea (diff) |
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_c.rb')
-rw-r--r-- | test/rdoc/test_rdoc_parser_c.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_parser_c.rb b/test/rdoc/test_rdoc_parser_c.rb index 38fb908492..4f5d9e3171 100644 --- a/test/rdoc/test_rdoc_parser_c.rb +++ b/test/rdoc/test_rdoc_parser_c.rb @@ -406,6 +406,17 @@ Init_Foo(void) { assert_equal "a comment for bar", bar.comment end + def test_look_for_directives_in + parser = util_parser '' + + comment = "# :markup: not_rdoc\n" + + parser.look_for_directives_in @top_level, comment + + assert_equal "# :markup: not_rdoc\n", comment + assert_equal 'not_rdoc', @top_level.metadata['markup'] + end + def test_define_method content = <<-EOF /*Method Comment! */ |