From cc94722ddf392bf486b73cf847a7bc2e5e87550a Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 8 Oct 2005 10:45:52 +0000 Subject: * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matched substring directly. * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a. * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed change of sample/test.rb. * test/net/http/test_http.rb: removed superfluous splatting stars. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/http/test_http.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/net/http') diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index ea0d7cf34..655c22a31 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -31,7 +31,7 @@ module TestNetHTTP_version_1_1_methods end def _test_get__get(http) - res, body = *http.get('/') + res, body = http.get('/') assert_kind_of Net::HTTPResponse, res assert_kind_of String, res.body assert_kind_of String, body @@ -61,7 +61,7 @@ module TestNetHTTP_version_1_1_methods def _test_get__chunked(http) buf = '' - res, body = *http.get('/') {|s| buf << s } + res, body = http.get('/') {|s| buf << s } assert_kind_of Net::HTTPResponse, res # assert_kind_of String, res.body # assert_kind_of String, body @@ -86,7 +86,7 @@ module TestNetHTTP_version_1_1_methods end def test_get__implicit_start - res, body = *new().get('/') + res, body = new().get('/') assert_kind_of Net::HTTPResponse, res assert_kind_of String, body assert_kind_of String, res.body -- cgit