From 70fc27b7facb8c73580428450989b66425c08177 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 8 Feb 2013 04:12:56 +0000 Subject: * lib/rdoc/generator/darkfish.rb: Set encoding on output template to user-specified encoding. * test/rdoc/test_rdoc_generator_darkfish.rb: Test for above. * lib/rdoc.rb: Bump version git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rdoc/test_rdoc_generator_darkfish.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/rdoc') 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 -- cgit v1.2.3