ruby-changes:29831
From: usa <ko1@a...>
Date: Wed, 10 Jul 2013 11:38:28 +0900 (JST)
Subject: [ruby-changes:29831] usa:r41883 (trunk): * test/net/http/test_http.rb (TestNetHTTP_v1_2#test_get,
usa 2013-07-10 11:38:17 +0900 (Wed, 10 Jul 2013) New Revision: 41883 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41883 Log: * test/net/http/test_http.rb (TestNetHTTP_v1_2#test_get, TestNetHTTP_v1_2_chunked#test_get): shoudn't check HttpResponse#decode_content if Zlib is not available. ko1 complained via IRC. Modified files: trunk/ChangeLog trunk/test/net/http/test_http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 41882) +++ ChangeLog (revision 41883) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jul 10 11:35:36 2013 NAKAMURA Usaku <usa@r...> + + * test/net/http/test_http.rb (TestNetHTTP_v1_2#test_get, + TestNetHTTP_v1_2_chunked#test_get): shoudn't check + HttpResponse#decode_content if Zlib is not available. + ko1 complained via IRC. + Wed Jul 10 10:20:07 2013 NARUSE, Yui <naruse@r...> * tool/rbinstall.rb: always require rubygems to stabilize rubygems Index: test/net/http/test_http.rb =================================================================== --- test/net/http/test_http.rb (revision 41882) +++ test/net/http/test_http.rb (revision 41883) @@ -233,7 +233,7 @@ module TestNetHTTP_version_1_1_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L233 http.get('/', { 'User-Agent' => 'test' }.freeze) } - assert res.decode_content, '[Bug #7924]' + assert res.decode_content, '[Bug #7924]' if Net::HTTP::HAVE_ZLIB end def _test_get__iter(http) @@ -460,7 +460,7 @@ module TestNetHTTP_version_1_2_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L460 assert_equal $test_net_http_data.size, res.body.size assert_equal $test_net_http_data, res.body - refute res.decode_content, 'Bug #7831' + refute res.decode_content, 'Bug #7831' if Net::HTTP::HAVE_ZLIB } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/