Capybara launches a simple application server (Mongrel / Webrick) that does not support SSL. To get the SSL environment on your local computer, you need to configure something like nginx or Apache with mod_ssl and mod_proxy to accept SSL connections and proxies for simple HTTP requests to your development server.
Then you can run it in the settings of the test environment and in your tests to go to this SSL server, and not to the application server itself.
:
" ssl", SSL. , . AFAIR Capybara selenium driver Firefox, SSL. , "" .
Capybara , . , - :
Capybara::Server.class_eval do
def find_available_port
@port = 3000
end
end