Simple way to test an HTTPS (SSL) request with RSpec
问题 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? 回答1: When using Sinatra and RSpec