summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-24 11:25:29 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-24 11:25:29 +0000
commit8e1d3e549872b621b018cfab925cc6677938d258 (patch)
tree9d59eb4ff754b8657174f11ecb62c52c4a754c57 /test/net
parent038555995ff56a25db0379fb9b5e03af3af4850c (diff)
* test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version 1.2. [ruby-dev:27312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_http.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 2e9a17e..ea0d7cf 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -270,6 +270,11 @@ module TestNetHTTPUtils
spawn_server
end
+ def teardown
+ # resume global state
+ Net::HTTP.version_1_2
+ end
+
def spawn_server
return if $test_net_http_server_running
server = WEBrick::HTTPServer.new(