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/update | |
parent | e6fd423bbdf6fc2aa1032a5e35df7b4079c45ddd (diff) | |
download | bundler-5946d62ad03c57271ccb037680382b1db9fc2e65.tar.gz |
Normalize file:// handling in specs
Diffstat (limited to 'spec/update')
-rw-r--r-- | spec/update/gemfile_spec.rb | 4 | ||||
-rw-r--r-- | spec/update/gems/post_install_spec.rb | 6 | ||||
-rw-r--r-- | spec/update/git_spec.rb | 20 | ||||
-rw-r--r-- | spec/update/redownload_spec.rb | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/spec/update/gemfile_spec.rb b/spec/update/gemfile_spec.rb index 6c47c254cd..8c2bd9ccbf 100644 --- a/spec/update/gemfile_spec.rb +++ b/spec/update/gemfile_spec.rb @@ -4,7 +4,7 @@ RSpec.describe "bundle update" do context "with --gemfile" do it "finds the gemfile" do gemfile bundled_app("NotGemfile"), <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem 'rack' G @@ -21,7 +21,7 @@ RSpec.describe "bundle update" do context "with gemfile set via config" do before do gemfile bundled_app("NotGemfile"), <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem 'rack' G diff --git a/spec/update/gems/post_install_spec.rb b/spec/update/gems/post_install_spec.rb index f6b7f39d0b..5b061eb61b 100644 --- a/spec/update/gems/post_install_spec.rb +++ b/spec/update/gems/post_install_spec.rb @@ -5,7 +5,7 @@ RSpec.describe "bundle update" do before do gemfile <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem 'rack', "< 1.0" gem 'thin' G @@ -47,7 +47,7 @@ RSpec.describe "bundle update" do context "when listed gem is updated" do before do gemfile <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem 'rack' gem 'thin' G @@ -62,7 +62,7 @@ RSpec.describe "bundle update" do context "when dependency triggers update" do before do gemfile <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem 'rack-obama' gem 'thin' G diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb index bc230a3575..1fc3076368 100644 --- a/spec/update/git_spec.rb +++ b/spec/update/git_spec.rb @@ -96,7 +96,7 @@ RSpec.describe "bundle update" do it "fetches tags from the remote" do build_git "foo" @remote = build_git("bar", :bare => true) - update_git "foo", :remote => @remote.path + update_git "foo", :remote => file_uri_for(@remote.path) update_git "foo", :push => "master" install_gemfile <<-G @@ -139,7 +139,7 @@ RSpec.describe "bundle update" do it "it unlocks the source when submodules are added to a git source" do install_gemfile <<-G - source "file:#{gem_repo4}" + source "#{file_uri_for(gem_repo4)}" git "#{lib_path("has_submodule-1.0")}" do gem "has_submodule" end @@ -149,7 +149,7 @@ RSpec.describe "bundle update" do expect(out).to eq("GEM") install_gemfile <<-G - source "file:#{gem_repo4}" + source "#{file_uri_for(gem_repo4)}" git "#{lib_path("has_submodule-1.0")}", :submodules => true do gem "has_submodule" end @@ -161,7 +161,7 @@ RSpec.describe "bundle update" do it "unlocks the source when submodules are removed from git source", :git => ">= 2.9.0" do install_gemfile! <<-G - source "file:#{gem_repo4}" + source "#{file_uri_for(gem_repo4)}" git "#{lib_path("has_submodule-1.0")}", :submodules => true do gem "has_submodule" end @@ -171,7 +171,7 @@ RSpec.describe "bundle update" do expect(out).to eq("GIT") install_gemfile! <<-G - source "file:#{gem_repo4}" + source "#{file_uri_for(gem_repo4)}" git "#{lib_path("has_submodule-1.0")}" do gem "has_submodule" end @@ -204,7 +204,7 @@ RSpec.describe "bundle update" do end install_gemfile <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem "rack", :git => "#{lib_path("rack-0.8")}", :branch => "master" G @@ -246,7 +246,7 @@ RSpec.describe "bundle update" do end install_gemfile <<-G - source "file://#{gem_repo2}" + source "#{file_uri_for(gem_repo2)}" git "#{lib_path("foo")}" do gem 'foo' end @@ -291,7 +291,7 @@ RSpec.describe "bundle update" do @git = build_git "foo", :path => lib_path("bar") install_gemfile <<-G - source "file://localhost#{gem_repo2}" + source "#{file_uri_for(gem_repo2)}" git "#{lib_path("bar")}" do gem 'foo' end @@ -319,7 +319,7 @@ RSpec.describe "bundle update" do foo (2.0) GEM - remote: file://localhost#{gem_repo2}/ + remote: #{file_uri_for(gem_repo2)}/ specs: rack (1.0.0) @@ -355,7 +355,7 @@ RSpec.describe "bundle update" do foo (2.0) GEM - remote: file://localhost#{gem_repo2}/ + remote: #{file_uri_for(gem_repo2)}/ specs: rack (1.0.0) diff --git a/spec/update/redownload_spec.rb b/spec/update/redownload_spec.rb index 39edac0902..b34a02c78c 100644 --- a/spec/update/redownload_spec.rb +++ b/spec/update/redownload_spec.rb @@ -3,7 +3,7 @@ RSpec.describe "bundle update" do before :each do install_gemfile <<-G - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem "rack" G end |