diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-06 18:06:21 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-11 12:36:19 +0200 |
commit | 5946d62ad03c57271ccb037680382b1db9fc2e65 (patch) | |
tree | 31be4479c7d942243440b378c054ef6d4308e398 /spec/install/failure_spec.rb | |
parent | e6fd423bbdf6fc2aa1032a5e35df7b4079c45ddd (diff) | |
download | bundler-5946d62ad03c57271ccb037680382b1db9fc2e65.tar.gz |
Normalize file:// handling in specs
Diffstat (limited to 'spec/install/failure_spec.rb')
-rw-r--r-- | spec/install/failure_spec.rb | 20 |
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 |