aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/force_ssl_test.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/actionpack/test/controller/force_ssl_test.rb b/actionpack/test/controller/force_ssl_test.rb
index e1e423675f..5639abdc56 100644
--- a/actionpack/test/controller/force_ssl_test.rb
+++ b/actionpack/test/controller/force_ssl_test.rb
@@ -321,29 +321,4 @@ class RedirectToSSLTest < ActionController::TestCase
assert_response 200
assert_equal 'ihaz', response.body
end
-
- def test_banana_redirects_to_https_if_not_https_and_flash_middleware_is_disabled
- disable_flash
- get :banana
- assert_response 301
- assert_equal 'https://test.host/redirect_to_ssl/banana', redirect_to_url
- ensure
- enable_flash
- end
-
- private
-
- def disable_flash
- ActionDispatch::TestRequest.class_eval do
- alias_method :flash_origin, :flash
- undef_method :flash
- end
- end
-
- def enable_flash
- ActionDispatch::TestRequest.class_eval do
- alias_method :flash, :flash_origin
- undef_method :flash_origin
- end
- end
end