diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-14 11:22:26 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-14 11:22:35 -0700 |
commit | 4d4d764ab688af4a0d213ab2d0dc7f9b811ab451 (patch) | |
tree | b68ebdd0af098062e78c88bf88f8ca95beae40ad /actionpack/lib | |
parent | 9dc06bc1f3bed149012361036b6930cacd73c676 (diff) | |
download | rails-4d4d764ab688af4a0d213ab2d0dc7f9b811ab451.tar.gz rails-4d4d764ab688af4a0d213ab2d0dc7f9b811ab451.tar.bz2 rails-4d4d764ab688af4a0d213ab2d0dc7f9b811ab451.zip |
Rack implements `redirect?` so we don't need it
Rack [already implements `redirect?` on the response object](https://github.com/rack/rack/blob/1569a985e17d9caaf94d0e97d95ef642c4ab14ba/lib/rack/response.rb#L141) so we don't need to implement our own.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 3 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/testing/test_response.rb | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 098ef09c0e..f922e134f7 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -139,9 +139,6 @@ module ActionController # Was the URL not found? alias_method :missing?, :not_found? - # Were we redirected? - alias_method :redirect?, :redirection? - # Was there a server-side error? alias_method :error?, :server_error? end diff --git a/actionpack/lib/action_dispatch/testing/test_response.rb b/actionpack/lib/action_dispatch/testing/test_response.rb index a9b88ac5fd..6a31d6243f 100644 --- a/actionpack/lib/action_dispatch/testing/test_response.rb +++ b/actionpack/lib/action_dispatch/testing/test_response.rb @@ -16,9 +16,6 @@ module ActionDispatch # Was the URL not found? alias_method :missing?, :not_found? - # Were we redirected? - alias_method :redirect?, :redirection? - # Was there a server-side error? alias_method :error?, :server_error? end |