зеркало из https://github.com/github/ruby.git
This commit is contained in:
Родитель
e70a1d9b7f
Коммит
69c5474e10
|
@ -26,7 +26,7 @@ describe "Net::HTTP#send_request" do
|
||||||
response = @http.send_request("HEAD", "/request")
|
response = @http.send_request("HEAD", "/request")
|
||||||
response.body.should be_nil
|
response.body.should be_nil
|
||||||
|
|
||||||
@methods.each do |method|
|
(@methods - %w[POST PUT]).each do |method|
|
||||||
response = @http.send_request(method, "/request")
|
response = @http.send_request(method, "/request")
|
||||||
response.body.should == "Request type: #{method}"
|
response.body.should == "Request type: #{method}"
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче