diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2015-05-13 18:28:33 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2015-05-30 14:13:57 +0800 |
commit | ca83436d1b3b6cedd1eca2259f65661e69b01909 (patch) | |
tree | 7a25da4004c50ed7b1cd8056dc912aa16ce14c29 /actionpack/test/controller/redirect_test.rb | |
parent | 109e71d2bb6d2305a091fe7ea96d4f6e9c7cd52d (diff) | |
download | rails-ca83436d1b3b6cedd1eca2259f65661e69b01909.tar.gz rails-ca83436d1b3b6cedd1eca2259f65661e69b01909.tar.bz2 rails-ca83436d1b3b6cedd1eca2259f65661e69b01909.zip |
Remove `assigns` and `assert_template`.
Diffstat (limited to 'actionpack/test/controller/redirect_test.rb')
-rw-r--r-- | actionpack/test/controller/redirect_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/test/controller/redirect_test.rb b/actionpack/test/controller/redirect_test.rb index ef30f1ea0f..4f5ca46b04 100644 --- a/actionpack/test/controller/redirect_test.rb +++ b/actionpack/test/controller/redirect_test.rb @@ -50,11 +50,6 @@ 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 redirect_to_url redirect_to "http://www.rubyonrails.org/" end @@ -215,12 +210,6 @@ class RedirectTest < ActionController::TestCase assert_redirected_to :controller => 'module_test/module_redirect', :action => 'hello_world' end - def test_redirect_with_assigns - get :redirect_with_assigns - assert_response :redirect - assert_equal "world", assigns["hello"] - end - def test_redirect_to_url get :redirect_to_url assert_response :redirect |