I'm using Rails 4.2.0 and using minitest-rails-capybara gem.
I have set redirects in /etc/hosts like:
127.0.0.1 localhost
127.0.0.1 mydomain.ci
127.0.0.1 mydomain.com.gh
127.0.0.1 mydomain.com
127.0.0.1 mydomain.co.ao
127.0.0.1 mydomain.com.ng
I'm trying to set mydomain.com.ng
in Capybara but I can't find the way.
This is how I'm trying to do it (test/test_helper.rb
):
Capybara.app_host = "http://mydomain.com.ng:8000"
Capybara.server_host = "mydomain.com.ng"
Capybara.server_port = "8000"
I've tried this with but no success.
Any idea?