aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-03-15 04:09:52 +0100
committerPiotr Sarnacki <drogus@gmail.com>2012-03-15 04:14:49 +0100
commit5b94e73d1a604c59ecd1ebb9441d60ea864fa1b5 (patch)
treeab3d35b5be4d22213e8092a12df8f5a4450ecb0e /actionpack/lib/action_controller
parente884f4b6b7440ccbeec2149669f34d2a2c14d4fb (diff)
downloadrails-5b94e73d1a604c59ecd1ebb9441d60ea864fa1b5.tar.gz
rails-5b94e73d1a604c59ecd1ebb9441d60ea864fa1b5.tar.bz2
rails-5b94e73d1a604c59ecd1ebb9441d60ea864fa1b5.zip
Remove ActionController::TestCase#rescue_action_in_public!
This method has no effect since exception handling was moved to middlewares and ActionController tests do not use any middlewares.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_case.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 7af30ed690..7ba8319e4c 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -505,11 +505,6 @@ module ActionController
end
end
- # Cause the action to be rescued according to the regular rules for rescue_action when the visitor is not local
- def rescue_action_in_public!
- @request.remote_addr = '208.77.188.166' # example.com
- end
-
included do
include ActionController::TemplateAssertions
include ActionDispatch::Assertions