Capybara with subdomains – default_host
I’m not sure of the intended use of default_host, but app_host does what you need. I’ve found I first need to call the rails session method host! in order to set the host string that will be passed to controllers in the request object. Then you need to set Capybara.app_host to tell Capybara to call … Read more