test/test_rdoc_context.rb in rdoc-4.0.1 vs test/test_rdoc_context.rb in rdoc-4.1.0.preview.3

- old
+ new

@@ -39,10 +39,18 @@ assert_equal [as], @context.external_aliases assert_equal [as], @context.unmatched_alias_lists['#old_name'] end + def test_add + @context.add RDoc::Extend, 'Ext', 'comment' + @context.add RDoc::Include, 'Incl', 'comment' + + refute_empty @context.extends + refute_empty @context.includes + end + def test_add_alias_method_attr top_level = @store.add_file 'file.rb' attr = RDoc::Attr.new nil, 'old_name', 'R', '' @@ -684,9 +692,18 @@ def test_remove_invisible_private util_visibilities @vis.remove_invisible :private + + assert_equal [@pub, @prot, @priv], @vis.method_list + assert_equal [@apub, @aprot, @apriv], @vis.attributes + end + + def test_remove_invisible_nodoc + util_visibilities + + @vis.remove_invisible :nodoc assert_equal [@pub, @prot, @priv], @vis.method_list assert_equal [@apub, @aprot, @apriv], @vis.attributes end