aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
diff options
context:
space:
mode:
authorChris Kelly <ckdake@ckdake.com>2012-02-20 14:35:30 -0500
committerChris Kelly <ckdake@ckdake.com>2012-02-20 14:35:30 -0500
commit68d3a4619490a0d9df1951f38068bd06d9e0fbb9 (patch)
treeaf11d970322b2527eb7101a992e33068c5669aae /actionpack/test/template/render_test.rb
parent3b824d66cd17965e3a9e76e36d569cf14463dcec (diff)
downloadrails-68d3a4619490a0d9df1951f38068bd06d9e0fbb9.tar.gz
rails-68d3a4619490a0d9df1951f38068bd06d9e0fbb9.tar.bz2
rails-68d3a4619490a0d9df1951f38068bd06d9e0fbb9.zip
Reset memoized hash keys when new entry added
Diffstat (limited to 'actionpack/test/template/render_test.rb')
-rw-r--r--actionpack/test/template/render_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index b1a866b148..893c3498e8 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -329,6 +329,12 @@ module RenderTestCases
ActionView::Template.register_template_handler :foo, CustomHandler
assert_equal 'source: "Hello, <%= name %>!"', @view.render(:inline => "Hello, <%= name %>!", :locals => { :name => "Josh" }, :type => :foo)
end
+
+ def test_render_knows_about_types_registered_when_extensions_are_checked_earlier_in_initialization
+ ActionView::Template::Handlers.extensions
+ ActionView::Template.register_template_handler :foo, CustomHandler
+ assert ActionView::Template::Handlers.extensions.include?(:foo)
+ end
def test_render_ignores_templates_with_malformed_template_handlers
ActiveSupport::Deprecation.silence do