Merge pull request #2648 from AndrewKvalheim/webmock-webdrivers

Resolve conflict between WebMock and Webdrivers
This commit is contained in:
Henne Vogelsang 2021-03-06 21:38:06 +01:00 committed by GitHub
commit 58d51c6d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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