[前][次][番号順一覧][スレッド一覧]

ruby-changes:28006

From: naruse <ko1@a...>
Date: Tue, 2 Apr 2013 15:28:25 +0900 (JST)
Subject: [ruby-changes:28006] naruse:r40058 (trunk): Suppress warnings

naruse	2013-04-02 15:28:13 +0900 (Tue, 02 Apr 2013)

  New Revision: 40058

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40058

  Log:
    Suppress warnings

  Modified files:
    trunk/test/webrick/test_httpauth.rb
    trunk/test/webrick/test_httpproxy.rb
    trunk/test/webrick/test_server.rb

Index: test/webrick/test_httpproxy.rb
===================================================================
--- test/webrick/test_httpproxy.rb	(revision 40057)
+++ test/webrick/test_httpproxy.rb	(revision 40058)
@@ -159,11 +159,13 @@ class TestWEBrickHTTPProxy < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/webrick/test_httpproxy.rb#L159
         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)
Index: test/webrick/test_httpauth.rb
===================================================================
--- test/webrick/test_httpauth.rb	(revision 40057)
+++ test/webrick/test_httpauth.rb	(revision 40058)
@@ -82,10 +82,10 @@ class TestWEBrickHTTPAuth < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/webrick/test_httpauth.rb#L82
   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|~]+)
Index: test/webrick/test_server.rb
===================================================================
--- test/webrick/test_server.rb	(revision 40057)
+++ test/webrick/test_server.rb	(revision 40058)
@@ -29,7 +29,7 @@ class TestWEBrickServer < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/webrick/test_server.rb#L29
       :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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]