diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-06-23 20:32:26 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-04 10:41:40 +0300 |
commit | db5839107951b000633fa8405f78e5c315b6656a (patch) | |
tree | bfb05cdd47e66647ea81a921767f13f49d23025a /actionpack/lib/action_controller | |
parent | 51e13d51adee3c69feab30aa4c0b08d2278ccc5f (diff) | |
download | rails-db5839107951b000633fa8405f78e5c315b6656a.tar.gz rails-db5839107951b000633fa8405f78e5c315b6656a.tar.bz2 rails-db5839107951b000633fa8405f78e5c315b6656a.zip |
Remove old broken follow_redirect from functional tests. Still works in integration tests.
The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 0cf143210d..8ae73a66f4 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -404,15 +404,6 @@ module ActionController #:nodoc: end alias xhr :xml_http_request - def follow_redirect - redirected_controller = @response.redirected_to[:controller] - if redirected_controller && redirected_controller != @controller.controller_name - raise "Can't follow redirects outside of current controller (from #{@controller.controller_name} to #{redirected_controller})" - end - - get(@response.redirected_to.delete(:action), @response.redirected_to.stringify_keys) - end - def assigns(key = nil) if key.nil? @response.template.assigns |