diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 05:09:18 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 05:09:18 +0000 |
commit | ea831469a9b4070a05b14916fb56c54eb7f5dd4a (patch) | |
tree | d656db9626f913ed08c3d44d9416a639ca9983f4 /actionpack/test | |
parent | 96c45a811891091cec2927cf80a7c7e5dd719cff (diff) | |
download | rails-ea831469a9b4070a05b14916fb56c54eb7f5dd4a.tar.gz rails-ea831469a9b4070a05b14916fb56c54eb7f5dd4a.tar.bz2 rails-ea831469a9b4070a05b14916fb56c54eb7f5dd4a.zip |
new render deprecations test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/new_render_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb index 0722bb9fd6..e06b657b07 100644 --- a/actionpack/test/controller/new_render_test.rb +++ b/actionpack/test/controller/new_render_test.rb @@ -160,7 +160,7 @@ class NewRenderTestController < ActionController::Base @customers = [ Customer.new("david"), Customer.new("mary") ] render :text => "How's there? #{render_to_string("test/list")}" end - + def accessing_params_in_template render :inline => "Hello: <%= params[:name] %>" end @@ -483,7 +483,7 @@ EOS end def test_render_to_string - get :hello_in_a_string + assert_not_deprecated { get :hello_in_a_string } assert_equal "How's there? goodbyeHello: davidHello: marygoodbye\n", @response.body end @@ -503,7 +503,7 @@ EOS end def test_render_with_explicit_template - get :render_with_explicit_template + assert_deprecated(/render/) { get :render_with_explicit_template } assert_response :success end @@ -585,7 +585,7 @@ EOS end def test_yield_content_for - get :yield_content_for + assert_not_deprecated { get :yield_content_for } assert_equal "<title>Putting stuff in the title!</title>\n\nGreat stuff!\n", @response.body end |