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

ruby-changes:24627

From: naruse <ko1@a...>
Date: Fri, 10 Aug 2012 14:25:17 +0900 (JST)
Subject: [ruby-changes:24627] naruse:r36678 (trunk): Run automatic deflate decoding only if it has zlib.

naruse	2012-08-10 14:25:04 +0900 (Fri, 10 Aug 2012)

  New Revision: 36678

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

  Log:
    Run automatic deflate decoding only if it has zlib.

  Modified files:
    trunk/test/net/http/test_httpresponse.rb

Index: test/net/http/test_httpresponse.rb
===================================================================
--- test/net/http/test_httpresponse.rb	(revision 36677)
+++ test/net/http/test_httpresponse.rb	(revision 36678)
@@ -93,7 +93,7 @@
     end
 
     assert_equal 'hello', body
-  end
+  end if Net::HTTP::HAVE_ZLIB
 
   def test_read_body_content_encoding_deflate_chunked
     io = dummy_io(<<EOS)
@@ -119,7 +119,7 @@
     end
 
     assert_equal 'hello', body
-  end
+  end if Net::HTTP::HAVE_ZLIB
 
   def test_read_body_content_encoding_deflate_no_length
     io = dummy_io(<<EOS)
@@ -139,7 +139,7 @@
     end
 
     assert_equal 'hello', body
-  end
+  end if Net::HTTP::HAVE_ZLIB
 
   def test_read_body_content_encoding_deflate_content_range
     io = dummy_io(<<EOS)

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

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