1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-07-27 12:40:09 +02:00
parent a06301b103
commit 5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions

View file

@ -13,7 +13,7 @@ describe "Net::HTTPGenericRequest#body_exist?" do
describe "when $VERBOSE is true" do
it "emits a warning" do
request = Net::HTTPGenericRequest.new("POST", true, false, "/some/path")
lambda {
-> {
request.body_exist?
}.should complain(/body_exist\? is obsolete/, verbose: true)
end

View file

@ -125,7 +125,7 @@ describe "Net::HTTPGenericRequest#exec when passed socket, version, path" do
"Content-Type" => "text/html")
request.body_stream = StringIO.new("Some Content")
lambda { request.exec(@buffered_socket, "1.1", "/some/other/path") }.should raise_error(ArgumentError)
-> { request.exec(@buffered_socket, "1.1", "/some/other/path") }.should raise_error(ArgumentError)
end
end
end

View file

@ -13,9 +13,9 @@ describe "Net::HTTPGenericRequest#set_body_internal when passed string" do
it "raises an ArgumentError when the body or body_stream of self have already been set" do
@request.body = "Some Content"
lambda { @request.set_body_internal("Some other Content") }.should raise_error(ArgumentError)
-> { @request.set_body_internal("Some other Content") }.should raise_error(ArgumentError)
@request.body_stream = "Some Content"
lambda { @request.set_body_internal("Some other Content") }.should raise_error(ArgumentError)
-> { @request.set_body_internal("Some other Content") }.should raise_error(ArgumentError)
end
end