trabajo-afectivo/spec/support/webmock.rb

17 lines
462 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
# allow requests to:
# - Zammad webservices
# - Google (calendar)
# - exchange.example.com (MS Exchange TCR mocks)
# - localhost (Selenium server control)
allowed_sites = lambda do |uri|
['zammad.com', 'google.com', 'exchange.example.com'].any? do |site|
uri.host.include?(site)
end
end
WebMock.disable_net_connect!(
allow: allowed_sites,
allow_localhost: true
)