Permalink
Browse files

Deprecation notice for TestResponse#redirected_to

  • Loading branch information...
josh committed Jan 30, 2010
1 parent c164ca1 commit 1bd8a50a995a047c8546e8901582b9d1e16af2df
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_dispatch/testing/test_response.rb
@@ -36,6 +36,11 @@ def layout
@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?

0 comments on commit 1bd8a50

Please sign in to comment.