mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge rdoc-6.0.0.beta2 from upstream.
* This version changed lexer used Ripper from lexer based IRB. see details: https://github.com/ruby/rdoc/pull/512 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65b11a04f1
commit
214a7f8d49
23 changed files with 1472 additions and 3227 deletions
|
@ -719,6 +719,7 @@ class TestRDocContext < XrefTestCase
|
|||
|
||||
assert_equal [@pub, @prot, @priv], @vis.method_list
|
||||
assert_equal [@apub, @aprot, @apriv], @vis.attributes
|
||||
assert_equal [@cpub, @cpriv], @vis.constants
|
||||
end
|
||||
|
||||
def test_remove_invisible_nodoc
|
||||
|
@ -728,6 +729,7 @@ class TestRDocContext < XrefTestCase
|
|||
|
||||
assert_equal [@pub, @prot, @priv], @vis.method_list
|
||||
assert_equal [@apub, @aprot, @apriv], @vis.attributes
|
||||
assert_equal [@cpub, @cpriv], @vis.constants
|
||||
end
|
||||
|
||||
def test_remove_invisible_protected
|
||||
|
@ -737,6 +739,7 @@ class TestRDocContext < XrefTestCase
|
|||
|
||||
assert_equal [@pub, @prot], @vis.method_list
|
||||
assert_equal [@apub, @aprot], @vis.attributes
|
||||
assert_equal [@cpub], @vis.constants
|
||||
end
|
||||
|
||||
def test_remove_invisible_public
|
||||
|
@ -746,6 +749,7 @@ class TestRDocContext < XrefTestCase
|
|||
|
||||
assert_equal [@pub], @vis.method_list
|
||||
assert_equal [@apub], @vis.attributes
|
||||
assert_equal [@cpub], @vis.constants
|
||||
end
|
||||
|
||||
def test_remove_invisible_public_force
|
||||
|
@ -755,11 +759,13 @@ class TestRDocContext < XrefTestCase
|
|||
@prot.force_documentation = true
|
||||
@apriv.force_documentation = true
|
||||
@aprot.force_documentation = true
|
||||
@cpriv.force_documentation = true
|
||||
|
||||
@vis.remove_invisible :public
|
||||
|
||||
assert_equal [@pub, @prot, @priv], @vis.method_list
|
||||
assert_equal [@apub, @aprot, @apriv], @vis.attributes
|
||||
assert_equal [@cpub, @cpriv], @vis.constants
|
||||
end
|
||||
|
||||
def test_remove_invisible_in_protected
|
||||
|
@ -922,6 +928,9 @@ class TestRDocContext < XrefTestCase
|
|||
@aprot = RDoc::Attr.new nil, 'prot', 'RW', nil
|
||||
@apriv = RDoc::Attr.new nil, 'priv', 'RW', nil
|
||||
|
||||
@cpub = RDoc::Constant.new 'CONST_PUBLIC', nil, nil
|
||||
@cpriv = RDoc::Constant.new 'CONST_PRIVATE', nil, nil
|
||||
|
||||
@vis = RDoc::NormalClass.new 'Vis'
|
||||
@vis.add_method @pub
|
||||
@vis.add_method @prot
|
||||
|
@ -931,11 +940,16 @@ class TestRDocContext < XrefTestCase
|
|||
@vis.add_attribute @aprot
|
||||
@vis.add_attribute @apriv
|
||||
|
||||
@vis.add_constant @cpub
|
||||
@vis.add_constant @cpriv
|
||||
|
||||
@prot.visibility = :protected
|
||||
@priv.visibility = :private
|
||||
|
||||
@aprot.visibility = :protected
|
||||
@apriv.visibility = :private
|
||||
|
||||
@cpriv.visibility = :private
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue