Sha256: 6894d003a6aefb573d856b60e6880cb1559eb690e8ec1c3fe8059a5ba6d98955

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

require 'webmock/config'

config = WebMock::Config.instance

unless config.allow_net_connect
  allow_localhost = config.allow_localhost
  allow = config.allow || []
  allow << /ondemand.saucelabs.com/
  connect_on_start = config.net_http_connect_on_start

  WebMock.disable_net_connect!(
    :allow_localhost => allow_localhost,
    :allow => allow, 
    :net_http_connect_on_start => connect_on_start
  )
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sauce-3.4.4 lib/sauce/webmock.rb
sauce-3.4.3 lib/sauce/webmock.rb
sauce-3.4.2 lib/sauce/webmock.rb
sauce-3.4.1 lib/sauce/webmock.rb
sauce-3.4.0 lib/sauce/webmock.rb
sauce-3.3.2 lib/sauce/webmock.rb