aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-08 04:12:56 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-08 04:12:56 +0000
commit70fc27b7facb8c73580428450989b66425c08177 (patch)
treee5a3a9122d6563023476820630feb732f3f08101 /test/rdoc
parentd2be12ef6171f75a074aca8caaeaf834e1f2aac8 (diff)
downloadruby-70fc27b7facb8c73580428450989b66425c08177.tar.gz
* 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
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb10
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