diff options
Diffstat (limited to 'test/rdoc')
-rw-r--r-- | test/rdoc/test_rdoc_generator_darkfish.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb index 08c14f8d57..613a1151e7 100644 --- a/test/rdoc/test_rdoc_generator_darkfish.rb +++ b/test/rdoc/test_rdoc_generator_darkfish.rb @@ -173,5 +173,15 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase assert_same template, @g.send(:template_for, classpage) end + def test_template_for_partial + partial = Pathname.new @options.template_dir + '_sidebar_classes.rhtml' + + template = @g.send(:template_for, partial, false, RDoc::ERBPartial) + + assert_kind_of RDoc::ERBPartial, template + + assert_same template, @g.send(:template_for, partial) + end + end |