summaryrefslogtreecommitdiff
path: root/spec/install/bundler_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/install/bundler_spec.rb')
-rw-r--r--spec/install/bundler_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/install/bundler_spec.rb b/spec/install/bundler_spec.rb
index fad6d68010..85b1fdcfbb 100644
--- a/spec/install/bundler_spec.rb
+++ b/spec/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