1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc.rb: Import RDoc 3.7 release candidate

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-06-16 04:59:24 +00:00
parent 97ac172d58
commit b7528b5edb
58 changed files with 2637 additions and 277 deletions

View file

@ -30,6 +30,15 @@ class TestRDocCodeObject < XrefTestCase
assert_equal 'I am a comment', @co.comment
end
def test_comment_equals_document
doc = RDoc::Markup::Document.new
@co.comment = doc
@co.comment = ''
assert_equal doc, @co.comment
end
def test_comment_equals_encoding
skip "Encoding not implemented" unless Object.const_defined? :Encoding
@ -129,6 +138,14 @@ class TestRDocCodeObject < XrefTestCase
assert_equal [@parent, @xref_data], parents
end
def test_file_name
assert_equal nil, @co.file_name
@co.record_location RDoc::TopLevel.new 'lib/file.rb'
assert_equal 'lib/file.rb', @co.file_name
end
def test_full_name_equals
@co.full_name = 'hi'