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:
Gaetan Craig-Riou
2024-05-15 10:07:40 +10:00
parent afbfc788b8
commit 1fde91e6ff
2 changed files with 2 additions and 2 deletions

View File

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

View File

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