aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rwxr-xr-xactionpack/test/controller/redirect_test.rb10
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