From 37679ee584e409088a2f083594e3c4ccba486e13 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 25 Jan 2010 23:12:50 +0000 Subject: supress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_httpproxy.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/webrick') diff --git a/test/webrick/test_httpproxy.rb b/test/webrick/test_httpproxy.rb index ab82ed8cd7..d37fd70a7a 100644 --- a/test/webrick/test_httpproxy.rb +++ b/test/webrick/test_httpproxy.rb @@ -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) } } -- cgit v1.2.3