diff --git a/spec/support/vcr.rb b/spec/support/vcr.rb index 975697ddd..f00885449 100644 --- a/spec/support/vcr.rb +++ b/spec/support/vcr.rb @@ -6,8 +6,8 @@ VCR.configure do |config| config.ignore_request do |request| uri = URI(request.uri) - ['zammad.com', 'google.com', 'elasticsearch', 'selenium'].any? do |site| - uri.host.include?(site) + ['zammad.com', 'google.com', 'elasticsearch', 'selenium', /^192\.168\.\d+\.\d+$/].any? do |site| + site.is_a?(Regexp) ? uri.host.match?(site) : uri.host.include?(site) end end