I want Rspec to request the root using https. This is what I currently have:
it "requesting root (/) with HTTPS should return 200" do
get "https://test.host/"
last_response.should be_ok
end
Attempting the solution proposed in Test an HTTPS (SSL) request in RSpec Rails returns the following error:
wrong number of arguments (0 for 1)
I would assume I could do something like:
get "/", :https => "on"
Is there a way to request the root without specifying the host?