summaryrefslogtreecommitdiff
path: root/spec/realworld
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-04-05 09:51:57 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-04-05 09:51:57 +0900
commit9f151e5a09f0810d5949f9b04c10bfd347290799 (patch)
tree4fec5b23ab97a89544b692bb1e572bea60f8aa43 /spec/realworld
parent79c380f58112be7d0a71b167ff026ab2a9e9f9a2 (diff)
downloadbundler-9f151e5a09f0810d5949f9b04c10bfd347290799.tar.gz
Remove explictily loading thread library, It's provided by embedded module in the modern Ruby.remove-thread
Diffstat (limited to 'spec/realworld')
-rw-r--r--spec/realworld/dependency_api_spec.rb2
-rw-r--r--spec/realworld/gemfile_source_header_spec.rb2
-rw-r--r--spec/realworld/mirror_probe_spec.rb2
3 files changed, 1 insertions, 5 deletions
diff --git a/spec/realworld/dependency_api_spec.rb b/spec/realworld/dependency_api_spec.rb
index c1ce8ceff1..e7d11419cd 100644
--- a/spec/realworld/dependency_api_spec.rb
+++ b/spec/realworld/dependency_api_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe "gemcutter's dependency API", :realworld => true do
@server_uri = "http://127.0.0.1:#{port}"
require File.expand_path("../../support/artifice/endpoint_timeout", __FILE__)
- require "thread"
+
@t = Thread.new do
server = Rack::Server.start(:app => EndpointTimeout,
:Host => "0.0.0.0",
diff --git a/spec/realworld/gemfile_source_header_spec.rb b/spec/realworld/gemfile_source_header_spec.rb
index ad8897d68c..eaefd0f03e 100644
--- a/spec/realworld/gemfile_source_header_spec.rb
+++ b/spec/realworld/gemfile_source_header_spec.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "thread"
-
RSpec.describe "fetching dependencies with a mirrored source", :realworld => true do
let(:mirror) { "https://server.example.org" }
let(:original) { "http://127.0.0.1:#{@port}" }
diff --git a/spec/realworld/mirror_probe_spec.rb b/spec/realworld/mirror_probe_spec.rb
index 8235032321..c5e95f3059 100644
--- a/spec/realworld/mirror_probe_spec.rb
+++ b/spec/realworld/mirror_probe_spec.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "thread"
-
RSpec.describe "fetching dependencies with a not available mirror", :realworld => true do
let(:mirror) { @mirror_uri }
let(:original) { @server_uri }