diff options
author | aycabta <[email protected]> | 2021-12-04 18:05:37 +0900 |
---|---|---|
committer | git <[email protected]> | 2021-12-09 18:16:05 +0900 |
commit | 2e50989ad39a1085e04a901d072e7a2a77d1dc8f (patch) | |
tree | 7c901a9bb9001fd327f173b8753cb370a44b3c71 /test/rdoc/xref_test_case.rb | |
parent | fa806cf233938af64ce928a37d2641dd762da87a (diff) |
[ruby/rdoc] Resolve class and method of the same name correctly
https://github.com/ruby/rdoc/commit/1e16284fe5
Diffstat (limited to 'test/rdoc/xref_test_case.rb')
-rw-r--r-- | test/rdoc/xref_test_case.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rdoc/xref_test_case.rb b/test/rdoc/xref_test_case.rb index 729e4a70b7..22b00d04bc 100644 --- a/test/rdoc/xref_test_case.rb +++ b/test/rdoc/xref_test_case.rb @@ -70,6 +70,14 @@ class XrefTestCase < RDoc::TestCase @c9_b_c_foo = @c9_b.method_list.first @c9_b_i_bar = @c9_b.method_list.last + @object = @xref_data.find_module_named 'Object' + @c10_class = @xref_data.find_module_named 'C10' + @c10_method = @object.find_method_named 'C10' + @c11_class = @xref_data.find_module_named 'C11' + @c10_c11_class = @c10_class.find_module_named 'C11' + @c10_c11_method = @c10_class.find_method_named 'C11' + @c11_method = @object.find_method_named 'C11' + @m1 = @xref_data.find_module_named 'M1' @m1_m = @m1.method_list.first |