diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-02-12 22:42:36 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-02-12 22:42:36 +0000 |
commit | 46356100d1518c67d005be1fecceb9aea4c72dfd (patch) | |
tree | 3be4b7579fe95c45929d3135ea370493519c8c01 /actionpack/test | |
parent | 11787b802a1ea8152507e94940f9af394d343c4c (diff) | |
download | rails-46356100d1518c67d005be1fecceb9aea4c72dfd.tar.gz rails-46356100d1518c67d005be1fecceb9aea4c72dfd.tar.bz2 rails-46356100d1518c67d005be1fecceb9aea4c72dfd.zip |
Make sure render :update support the options hash. Closes #11088 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 01a7ad6eec..7491f16a84 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -61,6 +61,12 @@ class TestController < ActionController::Base render :text => "hello world", :status => 404 end + def render_custom_code_rjs + render :update, :status => 404 do |page| + page.replace :foo, :partial => 'partial' + end + end + def render_text_with_nil render :text => nil end @@ -288,6 +294,12 @@ class RenderTest < Test::Unit::TestCase assert_equal 'hello world', @response.body end + def test_render_custom_code_rjs + get :render_custom_code_rjs + assert_response 404 + assert_equal %(Element.replace("foo", "partial html");), @response.body + end + def test_render_text_with_nil get :render_text_with_nil assert_response 200 |