aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-05 14:52:49 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-05 14:52:49 -0800
commit4d073df43d6ecd99ab04dbd0773a61559325efb8 (patch)
tree30afafb70e5ab62f34449d1c9d2d6aeb38adcafb /actionpack/test/controller
parentf53c247d10acbaacb0d61824cfce888c4b0520d2 (diff)
downloadrails-4d073df43d6ecd99ab04dbd0773a61559325efb8.tar.gz
rails-4d073df43d6ecd99ab04dbd0773a61559325efb8.tar.bz2
rails-4d073df43d6ecd99ab04dbd0773a61559325efb8.zip
Revert "remove deprecated API"
This reverts commit f53c247d10acbaacb0d61824cfce888c4b0520d2.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/action_pack_assertions_test.rb2
-rw-r--r--actionpack/test/controller/test_case_test.rb7
2 files changed, 8 insertions, 1 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb
index b941136fb6..bdbf158b36 100644
--- a/actionpack/test/controller/action_pack_assertions_test.rb
+++ b/actionpack/test/controller/action_pack_assertions_test.rb
@@ -338,7 +338,7 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase
end
def test_render_based_on_parameters
- process :render_based_on_parameters, 'GET', "name" => "David"
+ process :render_based_on_parameters, "name" => "David"
assert_equal "Mr. David", @response.body
end
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb
index 429c25a3eb..73b860ac18 100644
--- a/actionpack/test/controller/test_case_test.rb
+++ b/actionpack/test/controller/test_case_test.rb
@@ -245,6 +245,13 @@ XML
process :test_uri, "GET", :id => 7
assert_equal "/test_test/test/test_uri/7", @response.body
end
+
+ def test_process_with_old_api
+ assert_deprecated do
+ process :test_uri, :id => 7
+ assert_equal "/test_test/test/test_uri/7", @response.body
+ end
+ end
def test_process_with_request_uri_with_params_with_explicit_uri
@request.env['PATH_INFO'] = "/explicit/uri"