mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/rdoc: Update to 3.9.1. Fixes === lines in verbatim sections.
Fixes :nodoc: on class aliases. Fixes :stopdoc: creating references to Object. Fixes spacing when class comments are merged in ri. Fixes `ri []` crash. Fixes bug report URL when rdoc crashes. Adds :doc: and :nodoc: to allow hiding of implementation details in ruby. Makes `rdoc` and `ri` gem-aware. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd3477004e
commit
ed93a37bd5
34 changed files with 1384 additions and 604 deletions
|
@ -124,6 +124,24 @@ class TestRDocMarkupDocument < MiniTest::Unit::TestCase
|
|||
assert_equal expected, result
|
||||
end
|
||||
|
||||
def test_merge_empty
|
||||
original = @RM::Document.new
|
||||
root = @RM::Document.new original
|
||||
|
||||
replace = @RM::Document.new @RM::Paragraph.new 'replace'
|
||||
replace.file = 'file.rb'
|
||||
|
||||
other = @RM::Document.new replace
|
||||
|
||||
result = root.merge other
|
||||
|
||||
inner = @RM::Document.new @RM::Paragraph.new 'replace'
|
||||
inner.file = 'file.rb'
|
||||
expected = @RM::Document.new inner
|
||||
|
||||
assert_equal expected, result
|
||||
end
|
||||
|
||||
def test_push
|
||||
@d.push @RM::BlankLine.new, @RM::BlankLine.new
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue