mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #2648 from AndrewKvalheim/webmock-webdrivers
Resolve conflict between WebMock and Webdrivers
This commit is contained in:
commit
58d51c6d25
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue