diff options
Diffstat (limited to 'test/rdoc/test_rdoc_normal_module.rb')
-rw-r--r-- | test/rdoc/test_rdoc_normal_module.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_normal_module.rb b/test/rdoc/test_rdoc_normal_module.rb index 570b2765c6..975bf911fe 100644 --- a/test/rdoc/test_rdoc_normal_module.rb +++ b/test/rdoc/test_rdoc_normal_module.rb @@ -23,6 +23,12 @@ class TestRDocNormalModule < XrefTestCase assert_equal [mod2, incl.name], mod.ancestors end + def test_definition + m = RDoc::NormalModule.new 'M' + + assert_equal 'module M', m.definition + end + def test_module_eh assert @mod.module? end |