summaryrefslogtreecommitdiff
path: root/spec/bundler/other/major_deprecation_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/other/major_deprecation_spec.rb
parentd8d5e16305ee071f7cf16980788cabcc44799c2e (diff)
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
Diffstat (limited to 'spec/bundler/other/major_deprecation_spec.rb')
-rw-r--r--spec/bundler/other/major_deprecation_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb
index fd12c645a8..260a2cc55b 100644
--- a/spec/bundler/other/major_deprecation_spec.rb
+++ b/spec/bundler/other/major_deprecation_spec.rb
@@ -6,7 +6,7 @@ RSpec.describe "major deprecations" do
describe "Bundler" do
before do
install_gemfile! <<-G
- source "file:#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
end
@@ -196,7 +196,7 @@ RSpec.describe "major deprecations" do
describe "bundle update" do
before do
install_gemfile <<-G
- source "file:#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
end
@@ -217,7 +217,7 @@ RSpec.describe "major deprecations" do
describe "bundle install --binstubs" do
before do
install_gemfile <<-G, :binstubs => true
- source "file:#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
end
@@ -232,7 +232,7 @@ RSpec.describe "major deprecations" do
context "bundle install with both gems.rb and Gemfile present" do
it "should not warn about gems.rb" do
create_file "gems.rb", <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
@@ -243,7 +243,7 @@ RSpec.describe "major deprecations" do
it "should print a proper warning, and use gems.rb" do
create_file "gems.rb"
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
@@ -260,7 +260,7 @@ RSpec.describe "major deprecations" do
bundle "config set --local path vendor/bundle"
install_gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
end
@@ -302,8 +302,8 @@ RSpec.describe "major deprecations" do
context "bundle install with multiple sources" do
before do
install_gemfile <<-G
- source "file://localhost#{gem_repo3}"
- source "file://localhost#{gem_repo1}"
+ source "#{file_uri_for(gem_repo3)}"
+ source "#{file_uri_for(gem_repo1)}"
G
end
@@ -325,7 +325,7 @@ RSpec.describe "major deprecations" do
before do
create_file "gems.rb"
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack", :group => :test
G
@@ -427,7 +427,7 @@ The :gist git source is deprecated, and will be removed in the future. Add this
context "bundle show" do
before do
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
end