diff options
author | wycats <wycats@gmail.com> | 2010-12-26 23:56:09 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-12-26 23:56:09 -0800 |
commit | e03e1fdbc85bc05536a2770817c31b08d4f6be51 (patch) | |
tree | fa244a1bae2197c5b8ec7754133356a1086099b4 /actionpack/test/controller/new_base | |
parent | 7c568fda6ba2d6621a0872e4bc0c71bb2d13e65f (diff) | |
download | rails-e03e1fdbc85bc05536a2770817c31b08d4f6be51.tar.gz rails-e03e1fdbc85bc05536a2770817c31b08d4f6be51.tar.bz2 rails-e03e1fdbc85bc05536a2770817c31b08d4f6be51.zip |
Speed up template inheritance and remove template inheritance option
Diffstat (limited to 'actionpack/test/controller/new_base')
-rw-r--r-- | actionpack/test/controller/new_base/render_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/test/controller/new_base/render_test.rb b/actionpack/test/controller/new_base/render_test.rb index f5baa829b6..d6062bfa8c 100644 --- a/actionpack/test/controller/new_base/render_test.rb +++ b/actionpack/test/controller/new_base/render_test.rb @@ -53,10 +53,6 @@ module Render prepend_view_path ActionView::FixtureResolver.new("render/child_render/overriden_with_own_view_paths_prepended.html.erb" => "child content") end - class ChildRenderWithoutInheritanceController < BlankRenderController - config.template_inheritance = false - end - class RenderTest < Rack::TestCase test "render with blank" do with_routing do |set| @@ -138,12 +134,4 @@ module Render assert_body "Hello world!" end end - - class TestNoViewInheritance < Rack::TestCase - test "Template from parent controller does not get picked if config.action_controller.template_inheritance = false" do - assert_raises(ActionView::MissingTemplate) do - get "/render/child_render_without_inheritance/index", {}, "action_dispatch.show_exceptions" => false - end - end - end end |