diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-17 18:32:21 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-17 18:32:21 +0000 |
commit | 1812dbbfde6354ae2ea0bb20aaa32d177fa27979 (patch) | |
tree | 56dbe5a8b357e9e80c05d410ca9f333a63a3803f /actionpack/test | |
parent | e8c4cc95030155168bee38567b6f8497a669e99e (diff) | |
download | rails-1812dbbfde6354ae2ea0bb20aaa32d177fa27979.tar.gz rails-1812dbbfde6354ae2ea0bb20aaa32d177fa27979.tar.bz2 rails-1812dbbfde6354ae2ea0bb20aaa32d177fa27979.zip |
Make RJS treat symbolic action names nicely #3861 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/new_render_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb index 997a49091d..24a92d6f9e 100644 --- a/actionpack/test/controller/new_render_test.rb +++ b/actionpack/test/controller/new_render_test.rb @@ -30,6 +30,10 @@ class NewRenderTestController < ActionController::Base def render_action_hello_world render :action => "hello_world" end + + def render_action_hello_world_as_symbol + render :action => :hello_world + end def render_text_hello_world render :text => "hello world" @@ -282,6 +286,11 @@ class NewRenderTest < Test::Unit::TestCase assert_template "test/hello_world" end + def test_do_with_render_action_as_symbol + get :render_action_hello_world_as_symbol + assert_template "test/hello_world" + end + def test_do_with_render_text get :render_text_hello_world assert_equal "hello world", @response.body |