mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue