diff options
-rw-r--r-- | spec/bundler/mirror_spec.rb | 4 | ||||
-rw-r--r-- | spec/commands/install_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/mirror_spec.rb b/spec/bundler/mirror_spec.rb index acd0895f2f..fb476b8465 100644 --- a/spec/bundler/mirror_spec.rb +++ b/spec/bundler/mirror_spec.rb @@ -298,8 +298,8 @@ RSpec.describe Bundler::Settings::TCPSocketProbe do context "with a listening TCP Server" do def with_server_and_mirror - server = TCPServer.new("127.0.0.1", 0) - mirror = Bundler::Settings::Mirror.new("http://localhost:#{server.addr[1]}", 1) + server = TCPServer.new("0.0.0.0", 0) + mirror = Bundler::Settings::Mirror.new("http://0.0.0.0:#{server.addr[1]}", 1) yield server, mirror server.close unless server.closed? end diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index f4cb114623..c198797862 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -374,13 +374,13 @@ RSpec.describe "bundle install with gem sources" do it "gracefully handles error when rubygems server is unavailable" do install_gemfile <<-G, :artifice => nil source "file://#{gem_repo1}" - source "http://localhost:9384" do + source "http://0.0.0.0:9384" do gem 'foo' end G bundle :install, :artifice => nil - expect(err).to include("Could not fetch specs from http://localhost:9384/") + expect(err).to include("Could not fetch specs from http://0.0.0.0:9384/") expect(err).not_to include("file://") end |