aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/redirect_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-06-01 12:39:03 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-06-01 12:39:03 -0300
commitbdfc662a1195d13e3ef78cc8e79df8a8a2e3ca97 (patch)
tree8a0579453f36b82ec8c18a99cf3cb71029dbed55 /actionpack/test/controller/redirect_test.rb
parentbd83caa66680380685a3961339c81b77ab1e85ff (diff)
parentca83436d1b3b6cedd1eca2259f65661e69b01909 (diff)
downloadrails-bdfc662a1195d13e3ef78cc8e79df8a8a2e3ca97.tar.gz
rails-bdfc662a1195d13e3ef78cc8e79df8a8a2e3ca97.tar.bz2
rails-bdfc662a1195d13e3ef78cc8e79df8a8a2e3ca97.zip
Merge pull request #20138 from tgxworld/deprecated_assert_template
Deprecate `assert_template` and `assigns()`.
Diffstat (limited to 'actionpack/test/controller/redirect_test.rb')
-rw-r--r--actionpack/test/controller/redirect_test.rb11
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