summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net')
-rw-r--r--spec/ruby/library/net/ftp/shared/getbinaryfile.rb2
-rw-r--r--spec/ruby/library/net/ftp/shared/gettextfile.rb2
-rw-r--r--spec/ruby/library/net/ftp/shared/putbinaryfile.rb2
-rw-r--r--spec/ruby/library/net/http/http/get_spec.rb16
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