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

ruby-changes:39010

From: kazu <ko1@a...>
Date: Wed, 1 Jul 2015 23:52:21 +0900 (JST)
Subject: [ruby-changes:39010] kazu:r51091 (trunk): fix a failure without zlib

kazu	2015-07-01 23:52:05 +0900 (Wed, 01 Jul 2015)

  New Revision: 51091

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

  Log:
    fix a failure without zlib
    
    * test/net/http/test_httpresponse.rb
    (HTTPResponseTest#test_read_body_content_encoding_deflate_uppercase):
    fix failure without zlib.

  Modified files:
    trunk/ChangeLog
    trunk/test/net/http/test_httpresponse.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51090)
+++ ChangeLog	(revision 51091)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul  1 23:50:34 2015  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* test/net/http/test_httpresponse.rb
+	(HTTPResponseTest#test_read_body_content_encoding_deflate_uppercase):
+	fix a failure without zlib.
+
 Wed Jul  1 10:54:56 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* Add test for Enumerable#none? [fix GH-950] Patch by @yui-knk
Index: test/net/http/test_httpresponse.rb
===================================================================
--- test/net/http/test_httpresponse.rb	(revision 51090)
+++ test/net/http/test_httpresponse.rb	(revision 51091)
@@ -126,7 +126,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/net/http/test_httpresponse.rb#L126
       assert_equal nil, res['content-encoding']
       assert_equal 'hello', body
     else
-      assert_equal 'deflate', res['content-encoding']
+      assert_equal 'DEFLATE', res['content-encoding']
       assert_equal "x\x9C\xCBH\xCD\xC9\xC9\a\x00\x06,\x02\x15", body
     end
   end

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

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