diff options
Diffstat (limited to 'test/rdoc/test_rdoc_class_module.rb')
-rw-r--r-- | test/rdoc/test_rdoc_class_module.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/rdoc/test_rdoc_class_module.rb b/test/rdoc/test_rdoc_class_module.rb index 4dcc5d15ab..27d37cb7dd 100644 --- a/test/rdoc/test_rdoc_class_module.rb +++ b/test/rdoc/test_rdoc_class_module.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require File.expand_path '../xref_test_case', __FILE__ +require_relative 'xref_test_case' class TestRDocClassModule < XrefTestCase @@ -63,7 +63,7 @@ class TestRDocClassModule < XrefTestCase end def test_ancestors - assert_equal [@parent, "Object"], @child.ancestors + assert_equal [@parent, @object, "BasicObject"], @child.ancestors end def test_comment_equals @@ -89,7 +89,7 @@ class TestRDocClassModule < XrefTestCase assert_equal 'comment', cm.comment.text end - def test_docuent_self_or_methods + def test_document_self_or_methods assert @c1.document_self_or_methods @c1.document_self = false @@ -129,7 +129,7 @@ class TestRDocClassModule < XrefTestCase end def test_each_ancestor - assert_equal [@parent], @child.each_ancestor.to_a + assert_equal [@parent, @object], @child.each_ancestor.to_a end def test_each_ancestor_cycle @@ -238,7 +238,7 @@ class TestRDocClassModule < XrefTestCase assert_equal tl, loaded.method_list.first.file end - def test_marshal_dump_visibilty + def test_marshal_dump_visibility @store.path = Dir.tmpdir tl = @store.add_file 'file.rb' @@ -1501,4 +1501,3 @@ class TestRDocClassModule < XrefTestCase end end - |