diff options
author | Benoit Daloze <[email protected]> | 2023-06-26 15:55:11 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2023-06-26 15:55:11 +0200 |
commit | 515bd4214497b3af02f6eef51b496ad9a0cf6b3b (patch) | |
tree | 4554360d275a3bb9dc696f952b8f3d1bcd88f18a /spec/ruby/library/net | |
parent | f73fa299279ac322bd921691d1ba0e8bf2b39b5f (diff) |
Update to ruby/spec@30e1c35
Diffstat (limited to 'spec/ruby/library/net')
-rw-r--r-- | spec/ruby/library/net/ftp/shared/getbinaryfile.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/ftp/shared/gettextfile.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/ftp/shared/putbinaryfile.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/http/http/get_spec.rb | 16 |
4 files changed, 10 insertions, 12 deletions
diff --git a/spec/ruby/library/net/ftp/shared/getbinaryfile.rb b/spec/ruby/library/net/ftp/shared/getbinaryfile.rb index f324f5b85d..71f226089d 100644 --- a/spec/ruby/library/net/ftp/shared/getbinaryfile.rb +++ b/spec/ruby/library/net/ftp/shared/getbinaryfile.rb @@ -1,4 +1,4 @@ -describe :net_ftp_getbinaryfile, shared: :true do +describe :net_ftp_getbinaryfile, shared: true do before :each do @fixture_file = File.dirname(__FILE__) + "/../fixtures/getbinaryfile" @tmp_file = tmp("getbinaryfile") diff --git a/spec/ruby/library/net/ftp/shared/gettextfile.rb b/spec/ruby/library/net/ftp/shared/gettextfile.rb index 82bec2a4a7..7fe14f7dfb 100644 --- a/spec/ruby/library/net/ftp/shared/gettextfile.rb +++ b/spec/ruby/library/net/ftp/shared/gettextfile.rb @@ -1,4 +1,4 @@ -describe :net_ftp_gettextfile, shared: :true do +describe :net_ftp_gettextfile, shared: true do before :each do @tmp_file = tmp("gettextfile") diff --git a/spec/ruby/library/net/ftp/shared/putbinaryfile.rb b/spec/ruby/library/net/ftp/shared/putbinaryfile.rb index 1163a1cfea..7dddcbc26b 100644 --- a/spec/ruby/library/net/ftp/shared/putbinaryfile.rb +++ b/spec/ruby/library/net/ftp/shared/putbinaryfile.rb @@ -1,4 +1,4 @@ -describe :net_ftp_putbinaryfile, shared: :true do +describe :net_ftp_putbinaryfile, shared: true do before :each do @server = NetFTPSpecs::DummyFTP.new @server.serve_once diff --git a/spec/ruby/library/net/http/http/get_spec.rb b/spec/ruby/library/net/http/http/get_spec.rb index 9f6c45f26b..a3b62e3754 100644 --- a/spec/ruby/library/net/http/http/get_spec.rb +++ b/spec/ruby/library/net/http/http/get_spec.rb @@ -80,15 +80,13 @@ describe "Net::HTTP.get" do end end - ruby_version_is "3.0" do # https://bugs.ruby-lang.org/issues/13882#note-6 - it "lets the kill Thread exception goes through and does not replace it with Zlib::BufError" do - socket, client_thread = start_threads - begin - client_thread.kill - client_thread.value.should == nil - ensure - socket.close - end + it "lets the kill Thread exception goes through and does not replace it with Zlib::BufError" do + socket, client_thread = start_threads + begin + client_thread.kill + client_thread.value.should == nil + ensure + socket.close end end end |