mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update Webmock and VCR config as per Knapsack recommendation
See : https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md#720
This commit is contained in:
@@ -32,7 +32,7 @@ require 'webmock/rspec'
|
||||
WebMock.enable!
|
||||
WebMock.disable_net_connect!(
|
||||
allow_localhost: true,
|
||||
allow: ['chromedriver.storage.googleapis.com', 'api.knapsackpro.com']
|
||||
allow: ['chromedriver.storage.googleapis.com']
|
||||
)
|
||||
|
||||
# Requires supporting ruby files with custom matchers and macros, etc,
|
||||
|
||||
@@ -7,7 +7,7 @@ VCR.configure do |config|
|
||||
config.hook_into :webmock
|
||||
config.ignore_localhost = true
|
||||
config.configure_rspec_metadata!
|
||||
config.ignore_hosts('localhost', '127.0.0.1', '0.0.0.0', 'api.knapsackpro.com')
|
||||
config.ignore_localhost = true
|
||||
|
||||
# Filter sensitive environment variables
|
||||
%w[
|
||||
|
||||
Reference in New Issue
Block a user