I am trying to write a functional test for an action that should be run through https. I do not test HTTPS redirection - I already know what works from another test.
What I'm trying to do is:
get :new, :protocol => "https://" assert_redirected_to :root
But this does not trigger a request over https. Is there a get option that allows me to change the protocol?
Also, if I try to specify a URL (for example: get "https: /test.host/do/something"), I get a routing error, since there is no route at my rail level for https - it took care at my level web server.
source share