diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-01-15 13:45:31 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-01-17 10:04:38 -0200 |
commit | bb33e88833575184b3bd2d0877ea92e170672cde (patch) | |
tree | 3d7e904188dbb1580753628a2e92032c9d85c9d4 /actionpack/test/controller/new_base/render_template_test.rb | |
parent | 497004858de24e21dc67f8a9bd3a30b8ce951b92 (diff) | |
download | rails-bb33e88833575184b3bd2d0877ea92e170672cde.tar.gz rails-bb33e88833575184b3bd2d0877ea92e170672cde.tar.bz2 rails-bb33e88833575184b3bd2d0877ea92e170672cde.zip |
Remove deprecated logic to render templates starting with /
render :template => "/foo/bar"
Diffstat (limited to 'actionpack/test/controller/new_base/render_template_test.rb')
-rw-r--r-- | actionpack/test/controller/new_base/render_template_test.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/actionpack/test/controller/new_base/render_template_test.rb b/actionpack/test/controller/new_base/render_template_test.rb index ade204c387..88f8cc0d6e 100644 --- a/actionpack/test/controller/new_base/render_template_test.rb +++ b/actionpack/test/controller/new_base/render_template_test.rb @@ -201,26 +201,4 @@ module RenderTemplate assert_status 200 end end - - module Compatibility - class WithoutLayoutController < ActionController::Base - self.view_paths = [ActionView::FixtureResolver.new( - "test/basic.html.erb" => "Hello from basic.html.erb", - "shared.html.erb" => "Elastica" - )] - - def with_forward_slash - render :template => "/test/basic" - end - end - - class TestTemplateRenderWithForwardSlash < Rack::TestCase - test "rendering a normal template with full path starting with a leading slash" do - get "/render_template/compatibility/without_layout/with_forward_slash" - - assert_body "Hello from basic.html.erb" - assert_status 200 - end - end - end end |