class ForceSSLFlashTest
Public Instance Methods
test_cheeseburger_redirects_to_https()
click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 229 def test_cheeseburger_redirects_to_https get :set_flash assert_response 302 assert_equal "http://test.host/force_ssl_flash/cheeseburger", redirect_to_url @request.env.delete("PATH_INFO") get :cheeseburger assert_response 301 assert_equal "https://test.host/force_ssl_flash/cheeseburger", redirect_to_url @request.env.delete("PATH_INFO") get :use_flash assert_equal "hello", @controller.instance_variable_get("@flash_copy")["that"] assert_equal "hello", @controller.instance_variable_get("@flashy") end