summaryrefslogtreecommitdiffstats
path: root/test/net/http
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
commit2bdbae5d7a70a5be787010e944fe74325d803b4a (patch)
tree9d59eb4ff754b8657174f11ecb62c52c4a754c57 /test/net/http
parent3f4b1114bcdb6d6d7baec17140412d163448fa7c (diff)
downloadruby-2bdbae5d7a70a5be787010e944fe74325d803b4a.tar.gz
ruby-2bdbae5d7a70a5be787010e944fe74325d803b4a.tar.xz
ruby-2bdbae5d7a70a5be787010e944fe74325d803b4a.zip
* test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version 1.2. [ruby-dev:27312]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
-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 2e9a17e2b..ea0d7cf34 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(