Permalink
Browse files

new render deprecations test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 96c45a8 commit ea831469a9b4070a05b14916fb56c54eb7f5dd4a @jeremy jeremy committed Sep 4, 2006
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/test/controller/new_render_test.rb
@@ -160,7 +160,7 @@ def hello_in_a_string
@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 @@ def test_partial_only_with_layout
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 @@ def test_accessing_params_in_template_with_layout
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 @@ def test_update_page_with_instance_variables
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

0 comments on commit ea83146

Please sign in to comment.