diff --git a/spec/system/support/better_rails_system_tests.rb b/spec/system/support/better_rails_system_tests.rb index 2b5828f778..7b4ed4be25 100644 --- a/spec/system/support/better_rails_system_tests.rb +++ b/spec/system/support/better_rails_system_tests.rb @@ -36,10 +36,7 @@ RSpec.configure do |config| # Make sure this hook runs before others config.prepend_before(:each, type: :system) do - # Rails sets host to `127.0.0.1` for every test by default. - # That won't work with a remote browser. - host! CAPYBARA_APP_HOST - # Use JS driver always - driven_by Capybara.javascript_driver + # Use JS driver always + driven_by Capybara.javascript_driver end end