summaryrefslogtreecommitdiff
path: root/spec/install/failure_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/install/failure_spec.rb')
-rw-r--r--spec/install/failure_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/install/failure_spec.rb b/spec/install/failure_spec.rb
index ac3c707187..57ffafd588 100644
--- a/spec/install/failure_spec.rb
+++ b/spec/install/failure_spec.rb
@@ -15,12 +15,12 @@ RSpec.describe "bundle install" do
end
install_gemfile <<-G
- source "file:\/\/localhost#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails"
G
- expect(err).to end_with(normalize_uri_file(<<-M.strip))
+ expect(err).to end_with(<<-M.strip)
An error occurred while installing activesupport (2.3.2), and Bundler cannot continue.
-Make sure that `gem install activesupport -v '2.3.2' --source 'file://localhost#{gem_repo2}/'` succeeds before bundling.
+Make sure that `gem install activesupport -v '2.3.2' --source '#{file_uri_for(gem_repo2)}/'` succeeds before bundling.
In Gemfile:
rails was resolved to 2.3.2, which depends on
@@ -41,7 +41,7 @@ In Gemfile:
end
install_gemfile <<-G
- source "file:\/\/localhost#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rails"
gem "activesupport", :git => "#{lib_path("activesupport")}"
G
@@ -69,7 +69,7 @@ In Gemfile:
end
install_gemfile <<-G
- source "file:\/\/localhost#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rails"
git "#{lib_path("activesupport")}" do
@@ -106,14 +106,14 @@ In Gemfile:
end
install_gemfile <<-G
- source "file:\/\/localhost#{gem_repo4}"
- source "file:\/\/localhost#{gem_repo2}" do
+ source "#{file_uri_for(gem_repo4)}"
+ source "#{file_uri_for(gem_repo2)}" do
gem "rails"
end
G
- expect(err).to end_with(normalize_uri_file(<<-M.strip))
+ expect(err).to end_with(<<-M.strip)
An error occurred while installing activesupport (2.3.2), and Bundler cannot continue.
-Make sure that `gem install activesupport -v '2.3.2' --source 'file://localhost#{gem_repo2}/'` succeeds before bundling.
+Make sure that `gem install activesupport -v '2.3.2' --source '#{file_uri_for(gem_repo2)}/'` succeeds before bundling.
In Gemfile:
rails was resolved to 2.3.2, which depends on
@@ -133,7 +133,7 @@ In Gemfile:
it "removes the downloaded .gem" do
install_gemfile <<-G
- source "file:#{gem_repo4}"
+ source "#{file_uri_for(gem_repo4)}"
gem "a"
G