Sha256: c61a10359747b9917948d96fe46ddc9538a5e90f07ab92bbe1126d028733e503
Contents?: true
Size: 577 Bytes
Versions: 4
Compression:
Stored size: 577 Bytes
Contents
PROXY_ENV_VARS = %w[HTTP_PROXY http_proxy HTTPS_PROXY https_proxy ALL_PROXY] RSpec.configure do |config| proxy_envs = {} config.mock_with :rspec do |c| c.syntax = [:should, :expect] end config.expect_with :rspec do |c| c.syntax = [:should, :expect] end config.before :all do # Back-up ENV *_PROXY vars orig_proxy_envs = Hash[ PROXY_ENV_VARS.select {|k| ENV.key? k }.map {|k| [k, ENV.delete(k)] } ] proxy_envs.replace(orig_proxy_envs) end config.after :all do # Restore ENV *_PROXY vars ENV.update(proxy_envs) end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
em-http-request-samesite-0.1.1 | spec/spec_helper.rb |
em-http-request-samesite-1.1.7 | spec/spec_helper.rb |
em-http-request-1.1.7 | spec/spec_helper.rb |
em-http-request-1.1.6 | spec/spec_helper.rb |