diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-09 07:04:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-09 09:55:04 +0000 |
commit | b96d1018ae5261d8ee9344b959acb04c1be43279 (patch) | |
tree | 1681ca61673508fc0fbf6407c648527626710e54 /test/http_getonly.rb | |
parent | 7d740e5825e05030b5978ed296fd0b801666b405 (diff) | |
download | cmogstored-b96d1018ae5261d8ee9344b959acb04c1be43279.tar.gz |
Unused variables and unset Content-Type for Net::HTTP requests
Diffstat (limited to 'test/http_getonly.rb')
-rw-r--r-- | test/http_getonly.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http_getonly.rb b/test/http_getonly.rb index c26815f..8f8ebb3 100644 --- a/test/http_getonly.rb +++ b/test/http_getonly.rb @@ -68,11 +68,11 @@ class TestHTTPGetOnly < Test::Unit::TestCase assert_equal "HIHI\n", resp.body assert_equal "keep-alive", resp["Connection"] - resp = http.request(Net::HTTP::Delete.new("/dev666/test-file")) + resp = http.request(new_req(:Delete, "/dev666/test-file")) assert_kind_of Net::HTTPMethodNotAllowed, resp assert_equal "keep-alive", resp["Connection"] - resp = http.request(Net::HTTP::Mkcol.new("/dev666/test-dir")) + resp = http.request(new_req(:Mkcol, "/dev666/test-dir")) assert_kind_of Net::HTTPMethodNotAllowed, resp assert_equal "keep-alive", resp["Connection"] end |