diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-01-21 20:45:04 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-01-21 20:45:04 +0000 |
commit | 61c90a4ad6eab3623002353ed5867e2f05cb6809 (patch) | |
tree | 12855a156606c9af87c3f24d46d52dc859a55496 /actionpack/test/controller/render_test.rb | |
parent | 32b36b8936b043d54daad072054f95429e462ff8 (diff) | |
download | rails-61c90a4ad6eab3623002353ed5867e2f05cb6809.tar.gz rails-61c90a4ad6eab3623002353ed5867e2f05cb6809.tar.bz2 rails-61c90a4ad6eab3623002353ed5867e2f05cb6809.zip |
Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. Closes #10800 [lifofifo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index ddb77ee6b2..c258ae216b 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -20,6 +20,10 @@ class TestController < ActionController::Base render :template => "test/hello_world" end + def render_hello_world_with_forward_slash + render :template => "/test/hello_world" + end + def render_hello_world_from_variable @person = "david" render :text => "hello #{@person}" @@ -221,6 +225,11 @@ class RenderTest < Test::Unit::TestCase assert_template "test/hello_world" end + def test_render_with_forward_slash + get :render_hello_world_with_forward_slash + assert_template "test/hello_world" + end + def test_render_from_variable get :render_hello_world_from_variable assert_equal "hello david", @response.body |