class ForceSSLControllerLevelTest
Public Instance Methods
test_banana_redirects_to_https()
click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 98 def test_banana_redirects_to_https get :banana assert_response 301 assert_equal "https://test.host/force_ssl_controller_level/banana", redirect_to_url end
test_banana_redirects_to_https_with_extra_params()
click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 104 def test_banana_redirects_to_https_with_extra_params get :banana, params: { token: "secret" } assert_response 301 assert_equal "https://test.host/force_ssl_controller_level/banana?token=secret", redirect_to_url end
test_cheeseburger_redirects_to_https()
click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 110 def test_cheeseburger_redirects_to_https get :cheeseburger assert_response 301 assert_equal "https://test.host/force_ssl_controller_level/cheeseburger", redirect_to_url end
test_no_redirect_websocket_ssl_request()
click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 327 def test_no_redirect_websocket_ssl_request request.env["rack.url_scheme"] = "wss" request.env["Upgrade"] = "websocket" get :cheeseburger assert_response 200 end