diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-16 05:21:19 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-16 05:21:19 +0000 |
commit | f596dda0bb94fc97f4df165978f2bb1e40749645 (patch) | |
tree | 0d64509a015980da4086ff3818aaf380bd0d8554 /actionpack/test/controller | |
parent | 8a9496cb4e795e8b626117195d9f25f2b7e9c2f8 (diff) | |
download | rails-f596dda0bb94fc97f4df165978f2bb1e40749645.tar.gz rails-f596dda0bb94fc97f4df165978f2bb1e40749645.tar.bz2 rails-f596dda0bb94fc97f4df165978f2bb1e40749645.zip |
Undeprecate redirect_to with Hash argument and additional url_for parameters. Closes #7837.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rwxr-xr-x | actionpack/test/controller/redirect_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/controller/redirect_test.rb b/actionpack/test/controller/redirect_test.rb index df037ec28d..c4d2ebe5cb 100755 --- a/actionpack/test/controller/redirect_test.rb +++ b/actionpack/test/controller/redirect_test.rb @@ -22,6 +22,11 @@ class RedirectController < ActionController::Base redirect_to :back end + def redirect_with_parameters + session[:params] = { :user => 'test'} + redirect_to session[:params], :acton => 'hello_world' + end + def rescue_errors(e) raise e end def rescue_action(e) raise end @@ -97,6 +102,11 @@ class RedirectTest < Test::Unit::TestCase get :redirect_to_back } end + + def test_redirect_with_parameters + get :redirect_with_parameters + end + end module ModuleTest |