1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

supress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-01-25 23:12:50 +00:00
parent a967f738c8
commit 37679ee584
20 changed files with 77 additions and 77 deletions

View file

@ -254,8 +254,8 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
:SSLPrivateKey => key,
}
TestWEBrick.start_httpserver(s_config){|s_server, s_addr, s_port, s_log|
s_server.mount_proc("/"){|req, res|
res.body = "SSL #{req.request_method} #{req.path} #{req.body}"
s_server.mount_proc("/"){|req2, res|
res.body = "SSL #{req2.request_method} #{req2.path} #{req2.body}"
}
http = Net::HTTP.new("127.0.0.1", s_port, addr, port, up_log.call + log.call + s_log.call)
http.use_ssl = true
@ -263,14 +263,14 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
store_ctx.current_cert.to_der == cert.to_der
end
req = Net::HTTP::Get.new("/")
http.request(req){|res|
req2 = Net::HTTP::Get.new("/")
http.request(req2){|res|
assert_equal("SSL GET / ", res.body, up_log.call + log.call + s_log.call)
}
req = Net::HTTP::Post.new("/")
req.body = "post-data"
http.request(req){|res|
req2 = Net::HTTP::Post.new("/")
req2.body = "post-data"
http.request(req2){|res|
assert_equal("SSL POST / post-data", res.body, up_log.call + log.call + s_log.call)
}
}