532
531
with_env('http_proxy'=>'http://127.0.0.1:8080', 'HTTP_PROXY'=>'http://127.0.0.1:8081', 'REQUEST_METHOD'=>'GET') {
533
532
assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
537
536
def test_ftp_invalid_request
538
537
assert_raise(ArgumentError) { URI("ftp://127.0.0.1/").read }