stub_resp

in spec/cc/cli/runner_spec.rb [96:110]


    def stub_resp(url, addr, resp)
      uri = URI(url)

      stub_resolv(uri.host, addr)

      http = instance_double(Net::HTTP)
      allow(http).to receive(:open_timeout=)
      allow(http).to receive(:read_timeout=)
      allow(http).to receive(:ssl_timeout=)
      allow(http).to receive(:use_ssl=)
      allow(http).to receive(:get).and_return(resp)

      allow(Net::HTTP).to receive(:new).and_return(http)
    end