summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-11 21:28:15 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-13 13:24:25 +0100
commitcd933b4f04ace9b9ce4c968bc4405f9029019271 (patch)
tree3e0bee465da7c7ab00b353be306fa2e5cbbc7b46
parente0ae7cab66b70305d576d28044c9b2bd1cd7c3d2 (diff)
downloadbundler-cd933b4f04ace9b9ce4c968bc4405f9029019271.tar.gz
Fixes for docker
-rw-r--r--spec/bundler/mirror_spec.rb4
-rw-r--r--spec/commands/install_spec.rb4
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