summaryrefslogtreecommitdiff
path: root/spec/bundler/install/bundler_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-06 18:06:21 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:55 +0900
commitc3ddd47ce7b546530e2241b0ea6a96817977886a (patch)
tree46515c479773d7add25773b536009e096ee9fa78 /spec/bundler/install/bundler_spec.rb
parentd8d5e16305ee071f7cf16980788cabcc44799c2e (diff)
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
Diffstat (limited to 'spec/bundler/install/bundler_spec.rb')
-rw-r--r--spec/bundler/install/bundler_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/bundler/install/bundler_spec.rb b/spec/bundler/install/bundler_spec.rb
index fad6d68010..85b1fdcfbb 100644
--- a/spec/bundler/install/bundler_spec.rb
+++ b/spec/bundler/install/bundler_spec.rb
@@ -14,7 +14,7 @@ RSpec.describe "bundle install" do
it "are forced to the current bundler version" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails", "3.0"
G
@@ -23,7 +23,7 @@ RSpec.describe "bundle install" do
it "are not added if not already present" do
install_gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
expect(the_bundle).not_to include_gems "bundler #{Bundler::VERSION}"
@@ -31,7 +31,7 @@ RSpec.describe "bundle install" do
it "causes a conflict if explicitly requesting a different version" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails", "3.0"
gem "bundler", "0.9.2"
G
@@ -53,13 +53,13 @@ RSpec.describe "bundle install" do
it "works for gems with multiple versions in its dependencies" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "multiple_versioned_deps"
G
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "multiple_versioned_deps"
gem "rack"
@@ -70,7 +70,7 @@ RSpec.describe "bundle install" do
it "includes bundler in the bundle when it's a child dependency" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails", "3.0"
G
@@ -80,7 +80,7 @@ RSpec.describe "bundle install" do
it "allows gem 'bundler' when Bundler is not in the Gemfile or its dependencies" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rack"
G
@@ -90,7 +90,7 @@ RSpec.describe "bundle install" do
it "causes a conflict if child dependencies conflict" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "activemerchant"
gem "rails_fail"
G
@@ -109,7 +109,7 @@ RSpec.describe "bundle install" do
it "causes a conflict if a child dependency conflicts with the Gemfile" do
install_gemfile <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails_fail"
gem "activesupport", "2.3.5"
G
@@ -128,7 +128,7 @@ RSpec.describe "bundle install" do
it "can install dependencies with newer bundler version with system gems" do
bundle! "config set path.system true"
install_gemfile! <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails", "3.0"
G
@@ -141,7 +141,7 @@ RSpec.describe "bundle install" do
it "can install dependencies with newer bundler version with a local path" do
bundle! "config set path .bundle"
install_gemfile! <<-G
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "rails", "3.0"
G
@@ -162,7 +162,7 @@ RSpec.describe "bundle install" do
end
install_gemfile! <<-G
- source "file://#{gem_repo4}"
+ source "#{file_uri_for(gem_repo4)}"
gem "requires_nonexistant_bundler"
G