mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
parent
478e0fc710
commit
7ae4b858b3
4 changed files with 41 additions and 8 deletions
|
@ -1279,6 +1279,12 @@ class TestRDocClassModule < XrefTestCase
|
|||
assert_equal @c3_h1, @c3_h2.superclass
|
||||
end
|
||||
|
||||
def test_super_classes
|
||||
rdoc_c3_h1 = @xref_data.find_module_named('C3::H1')
|
||||
rdoc_object = @xref_data.find_module_named('Object')
|
||||
assert_equal [rdoc_c3_h1, rdoc_object, "BasicObject"], @c3_h2.super_classes
|
||||
end
|
||||
|
||||
def test_update_aliases_class
|
||||
n1 = @xref_data.add_module RDoc::NormalClass, 'N1'
|
||||
n1_k2 = n1.add_module RDoc::NormalClass, 'N2'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue