Skip to content

Commit

Permalink
Merge pull request #2648 from AndrewKvalheim/webmock-webdrivers
Browse files Browse the repository at this point in the history
Resolve conflict between WebMock and Webdrivers
  • Loading branch information
hennevogel authored Mar 6, 2021
2 parents 8b0f6ae + fa129d2 commit 58d51c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/support/external_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58d51c6

Please sign in to comment.