diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-02 06:28:13 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-02 06:28:13 +0000 |
commit | 63f33c5e461dc7c84bdb31f5d5fb4f163ada9157 (patch) | |
tree | 6bbf178e855dfdb444f4e52e07700cbc51ad305a /test/webrick | |
parent | 4046585a206a8002d6dab192f00b4c03786a3d0e (diff) | |
download | ruby-63f33c5e461dc7c84bdb31f5d5fb4f163ada9157.tar.gz |
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/test_httpauth.rb | 6 | ||||
-rw-r--r-- | test/webrick/test_httpproxy.rb | 2 | ||||
-rw-r--r-- | test/webrick/test_server.rb | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/test/webrick/test_httpauth.rb b/test/webrick/test_httpauth.rb index 71f683e791..8d530fa84a 100644 --- a/test/webrick/test_httpauth.rb +++ b/test/webrick/test_httpauth.rb @@ -82,10 +82,10 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase end DIGESTRES_ = / - ([a-zA-z\-]+) - [\s\t]*(?:\r\n[\s\t]*)* + ([a-zA-Z\-]+) + [ \t]*(?:\r\n[ \t]*)* = - [\s\t]*(?:\r\n[\s\t]*)* + [ \t]*(?:\r\n[ \t]*)* (?: "((?:[^"]+|\\[\x00-\x7F])*)" | ([!\#$%&'*+\-.0-9A-Z^_`a-z|~]+) diff --git a/test/webrick/test_httpproxy.rb b/test/webrick/test_httpproxy.rb index cab7095d12..304762c465 100644 --- a/test/webrick/test_httpproxy.rb +++ b/test/webrick/test_httpproxy.rb @@ -159,11 +159,13 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase end req = Net::HTTP::Get.new("/") + req["Content-Type"] = "application/x-www-form-urlencoded" http.request(req){|res| assert_equal("SSL GET / ", res.body, s_log.call + log.call) } req = Net::HTTP::Post.new("/") + req["Content-Type"] = "application/x-www-form-urlencoded" req.body = "post-data" http.request(req){|res| assert_equal("SSL POST / post-data", res.body, s_log.call + log.call) diff --git a/test/webrick/test_server.rb b/test/webrick/test_server.rb index eb13994db7..3f849a459c 100644 --- a/test/webrick/test_server.rb +++ b/test/webrick/test_server.rb @@ -29,7 +29,7 @@ class TestWEBrickServer < Test::Unit::TestCase :StopCallback => Proc.new{ stopped += 1 }, } - e = assert_raises(SignalException) do + assert_raises(SignalException) do TestWEBrick.start_server(Echo, config) { |server, addr, port, log| listener = server.listeners.first |