diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 44d81a6b248..67df4b67c39 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -308,7 +308,7 @@ RSpec.configure do |config| Capybara.w3c_click_offset = false Capybara.configure do |capybara_config| - capybara_config.server_host = "localhost" + capybara_config.server_host = ENV["CAPYBARA_SERVER_HOST"].presence || "localhost" capybara_config.server_port = 31_337 + ENV["TEST_ENV_NUMBER"].to_i end