diff options
Diffstat (limited to 'actionpack/test/controller/redirect_test.rb')
-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 403bb8f9d5..f18f3682de 100755 --- a/actionpack/test/controller/redirect_test.rb +++ b/actionpack/test/controller/redirect_test.rb @@ -17,6 +17,11 @@ class RedirectController < ActionController::Base redirect_to :controller => 'module_test/module_redirect', :action => "hello_world" end + def redirect_with_assigns + @hello = "world" + redirect_to :action => "hello_world" + end + def rescue_errors(e) raise e end protected @@ -56,6 +61,11 @@ class RedirectTest < Test::Unit::TestCase get :module_redirect assert_redirected_to :controller => 'module_test/module_redirect', :action => 'hello_world' end + + def test_redirect_with_assigns + get :redirect_with_assigns + assert_equal "world", assigns["hello"] + end end module ModuleTest |