summaryrefslogtreecommitdiff
path: root/test/webrick
diff options
context:
space:
mode:
Diffstat (limited to 'test/webrick')
-rw-r--r--test/webrick/test_httpproxy.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/webrick/test_httpproxy.rb b/test/webrick/test_httpproxy.rb
index 304762c465..501bb4cbe5 100644
--- a/test/webrick/test_httpproxy.rb
+++ b/test/webrick/test_httpproxy.rb
@@ -123,7 +123,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
nil, nil, OpenSSL::Digest::SHA1.new
)
return cert
- end
+ end if defined?(OpenSSL::TestUtils)
def test_connect
# Testing CONNECT to proxy server
@@ -172,7 +172,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
}
}
}
- end if defined?(OpenSSL)
+ end if defined?(OpenSSL::TestUtils)
def test_upstream_proxy
# Testing GET or POST through the upstream proxy server
@@ -240,7 +240,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
assert_equal(3, proxy_handler_called, up_log.call + log.call)
assert_equal(3, request_handler_called, up_log.call + log.call)
- if defined?(OpenSSL)
+ if defined?(OpenSSL::TestUtils)
# Testing CONNECT to the upstream proxy server
#
# client -------> proxy -------> proxy -------> https