diff --git a/spec/support/external_request.rb b/spec/support/external_request.rb index fb69975f..a3ebf939 100644 --- a/spec/support/external_request.rb +++ b/spec/support/external_request.rb @@ -2,7 +2,10 @@ # Mock external requests to youtube require 'webmock/rspec' -WebMock.disable_net_connect!(allow_localhost: true, allow: /stripe.com/) +driver_urls = Webdrivers::Common.subclasses.map do |driver| + Addressable::URI.parse(driver.base_url).host +end +WebMock.disable_net_connect!(allow_localhost: true, allow: [*driver_urls, /stripe.com/]) RSpec.configure do |config| config.before(:each) do