mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
038555995f
commit
8e1d3e5498
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Sep 24 20:20:05 2005 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* test/net/http/test_http.rb (teardown): ensure that Net::HTTP is
|
||||
version 1.2. [ruby-dev:27312]
|
||||
|
||||
Sat Sep 24 11:44:28 2005 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* test/net/http/test_http.rb: new file.
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue