aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-01-30 12:26:26 -0600
committerJoshua Peek <josh@joshpeek.com>2010-01-30 12:26:49 -0600
commit1bd8a50a995a047c8546e8901582b9d1e16af2df (patch)
tree3c03af0315bbef705ed45df49df07462a6aefa0e /actionpack
parentc164ca1efbb3b097d5a3f3db56c4988858607011 (diff)
downloadrails-1bd8a50a995a047c8546e8901582b9d1e16af2df.tar.gz
rails-1bd8a50a995a047c8546e8901582b9d1e16af2df.tar.bz2
rails-1bd8a50a995a047c8546e8901582b9d1e16af2df.zip
Deprecation notice for TestResponse#redirected_to
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/testing/test_response.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/test_response.rb b/actionpack/lib/action_dispatch/testing/test_response.rb
index 6d019023ce..9a51a32899 100644
--- a/actionpack/lib/action_dispatch/testing/test_response.rb
+++ b/actionpack/lib/action_dispatch/testing/test_response.rb
@@ -36,6 +36,11 @@ module ActionDispatch
@template.layout
end
+ def redirected_to
+ ::ActiveSupport::Deprecation.warn("response.redirected_to is deprecated. Use response.redirect_url instead", caller)
+ redirect_url
+ end
+
def redirect_url_match?(pattern)
::ActiveSupport::Deprecation.warn("response.redirect_url_match? is deprecated. Use assert_match(/foo/, response.redirect_url) instead", caller)
return false if redirect_url.nil?