webmock.rb 385 B

1234567891011121314
  1. # allow requests to:
  2. # - Zammad webservices
  3. # - Google (calendar)
  4. # - exchange.example.com (MS Exchange TCR mocks)
  5. # - localhost (Selenium server control)
  6. allowed_sites = lambda do |uri|
  7. ['zammad.com', 'google.com', 'exchange.example.com'].any? do |site|
  8. uri.host.include?(site)
  9. end
  10. end
  11. WebMock.disable_net_connect!(
  12. allow: allowed_sites,
  13. allow_localhost: true
  14. )