diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-07-27 12:40:09 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-07-27 12:40:09 +0200 |
commit | 5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 (patch) | |
tree | 05b5c68c8b2a00224d4646ea3b26ce3877efaadd /spec/ruby/library/net/http/http | |
parent | a06301b103371b0b7da8eaca26ba744961769f99 (diff) |
Update to ruby/spec@875a09e
Diffstat (limited to 'spec/ruby/library/net/http/http')
4 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/net/http/http/finish_spec.rb b/spec/ruby/library/net/http/http/finish_spec.rb index b031c58e2c..f98bc7be13 100644 --- a/spec/ruby/library/net/http/http/finish_spec.rb +++ b/spec/ruby/library/net/http/http/finish_spec.rb @@ -23,7 +23,7 @@ describe "Net::HTTP#finish" do describe "when self has not been started yet" do it "raises an IOError" do - lambda { @http.finish }.should raise_error(IOError) + -> { @http.finish }.should raise_error(IOError) end end end diff --git a/spec/ruby/library/net/http/http/get_print_spec.rb b/spec/ruby/library/net/http/http/get_print_spec.rb index 6174e3eb21..f59dd68c81 100644 --- a/spec/ruby/library/net/http/http/get_print_spec.rb +++ b/spec/ruby/library/net/http/http/get_print_spec.rb @@ -14,7 +14,7 @@ describe "Net::HTTP.get_print" do describe "when passed URI" do it "it prints the body of the specified uri to $stdout" do - lambda do + -> do Net::HTTP.get_print URI.parse("http://localhost:#{@port}/") end.should output(/This is the index page\./) end @@ -22,7 +22,7 @@ describe "Net::HTTP.get_print" do describe "when passed host, path, port" do it "it prints the body of the specified uri to $stdout" do - lambda do + -> do Net::HTTP.get_print 'localhost', "/", @port end.should output(/This is the index page\./) end diff --git a/spec/ruby/library/net/http/http/set_debug_output_spec.rb b/spec/ruby/library/net/http/http/set_debug_output_spec.rb index e0fe4796da..94b6f4499d 100644 --- a/spec/ruby/library/net/http/http/set_debug_output_spec.rb +++ b/spec/ruby/library/net/http/http/set_debug_output_spec.rb @@ -28,6 +28,6 @@ describe "Net::HTTP#set_debug_output when passed io" do it "outputs a warning when the connection has already been started" do @http.start - lambda { @http.set_debug_output(StringIO.new) }.should complain(/Net::HTTP#set_debug_output called after HTTP started/) + -> { @http.set_debug_output(StringIO.new) }.should complain(/Net::HTTP#set_debug_output called after HTTP started/) end end diff --git a/spec/ruby/library/net/http/http/start_spec.rb b/spec/ruby/library/net/http/http/start_spec.rb index e23f9183f7..a2768eed18 100644 --- a/spec/ruby/library/net/http/http/start_spec.rb +++ b/spec/ruby/library/net/http/http/start_spec.rb @@ -81,7 +81,7 @@ describe "Net::HTTP#start" do describe "when self has already been started" do it "raises an IOError" do @http.start - lambda { @http.start }.should raise_error(IOError) + -> { @http.start }.should raise_error(IOError) end end |