diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-12-26 01:03:18 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-26 01:12:11 +0000 |
commit | 80307c8b0a889acc7abb7f4e52fd4c02e1063ba8 (patch) | |
tree | c4cb570b8f29a63408c3b74f2cbedd383c48d237 /actionpack/test/controller/render_test.rb | |
parent | cd1d6e8768ae13b11bc343701037b20ad35e6f1e (diff) | |
download | rails-80307c8b0a889acc7abb7f4e52fd4c02e1063ba8.tar.gz rails-80307c8b0a889acc7abb7f4e52fd4c02e1063ba8.tar.bz2 rails-80307c8b0a889acc7abb7f4e52fd4c02e1063ba8.zip |
Make ActionController#render(symbol) behave same as ActionController#render(string) [#1435]
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index d097cf496f..5fd41d8eec 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -304,6 +304,10 @@ class TestController < ActionController::Base render "hello_world", :layout => "standard" end + def layout_test_with_different_layout_and_symbol_action + render :hello_world, :layout => "standard" + end + def rendering_without_layout render :action => "hello_world", :layout => false end @@ -1057,11 +1061,16 @@ class RenderTest < ActionController::TestCase assert_equal "<html>Hello world!</html>", @response.body end - def test_layout_test_with_different_layout + def test_layout_test_with_different_layout_and_string_action get :layout_test_with_different_layout_and_string_action assert_equal "<html>Hello world!</html>", @response.body end + def test_layout_test_with_different_layout_and_symbol_action + get :layout_test_with_different_layout_and_symbol_action + assert_equal "<html>Hello world!</html>", @response.body + end + def test_rendering_without_layout get :rendering_without_layout assert_equal "Hello world!", @response.body |