diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-24 11:25:29 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-24 11:25:29 +0000 |
| commit | 2bdbae5d7a70a5be787010e944fe74325d803b4a (patch) | |
| tree | 9d59eb4ff754b8657174f11ecb62c52c4a754c57 /test/net | |
| parent | 3f4b1114bcdb6d6d7baec17140412d163448fa7c (diff) | |
| download | ruby-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')
| -rw-r--r-- | test/net/http/test_http.rb | 5 |
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( |
