aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorMehmet Emin INAC <mehmetemininac@gmail.com>2017-02-20 18:10:28 +0100
committerMehmet Emin INAC <mehmetemininac@gmail.com>2017-02-20 18:10:28 +0100
commitca7799861982e89d1dfc8a06f369b921edccddfa (patch)
tree0f9866003eb5c37d5042478af73aa0a05c4793df /actionpack/test/controller
parent6c520b75286aa5969de427c5aa417061bd7c58bc (diff)
downloadrails-ca7799861982e89d1dfc8a06f369b921edccddfa.tar.gz
rails-ca7799861982e89d1dfc8a06f369b921edccddfa.tar.bz2
rails-ca7799861982e89d1dfc8a06f369b921edccddfa.zip
Use `response#location` instead of `#location` in redirect.
Closes #28033
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/redirect_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/redirect_test.rb b/actionpack/test/controller/redirect_test.rb
index e4e968dfdb..f06a1f4d23 100644
--- a/actionpack/test/controller/redirect_test.rb
+++ b/actionpack/test/controller/redirect_test.rb
@@ -21,8 +21,8 @@ end
class RedirectController < ActionController::Base
# empty method not used anywhere to ensure methods like
# `status` and `location` aren't called on `redirect_to` calls
- def status; render plain: "called status"; end
- def location; render plain: "called location"; end
+ def status; raise "Should not be called!"; end
+ def location; raise "Should not be called!"; end
def simple_redirect
redirect_to action: "hello_world"