Given(/^no proxy urls in environment$/) do ENV.delete('http_proxy') ENV.delete('https_proxy') ENV.delete('HTTP_PROXY') ENV.delete('HTTPS_PROXY') end When(/^I sucessfully fetch the proxy pac$/) do @result = Excon.get('http://localhost:8000/v1/pac/proxy.pac').body end Then(/^I got$/) do |string| expect(@result).to eq(string) end Before('@slow_process') do @aruba_timeout_seconds = 10 end