1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Normalize file:// handling in specs

5946d62ad0
This commit is contained in:
David Rodríguez 2019-05-06 18:06:21 +02:00 committed by Hiroshi SHIBATA
parent d8d5e16305
commit c3ddd47ce7
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
95 changed files with 1021 additions and 1023 deletions

View file

@ -16,8 +16,8 @@ RSpec.describe "bundler source plugin" do
it "installs bundler-source-* gem when no handler for source is present" do
install_gemfile <<-G
source "file://#{gem_repo2}"
source "file://#{lib_path("gitp")}", :type => :psource do
source "#{file_uri_for(gem_repo2)}"
source "#{file_uri_for(lib_path("gitp"))}", :type => :psource do
end
G
@ -37,8 +37,8 @@ RSpec.describe "bundler source plugin" do
end
install_gemfile <<-G
source "file://#{gem_repo2}"
source "file://#{lib_path("gitp")}", :type => :psource do
source "#{file_uri_for(gem_repo2)}"
source "#{file_uri_for(lib_path("gitp"))}", :type => :psource do
end
G
@ -61,11 +61,11 @@ RSpec.describe "bundler source plugin" do
context "explicit presence in gemfile" do
before do
install_gemfile <<-G
source "file://#{gem_repo2}"
source "#{file_uri_for(gem_repo2)}"
plugin "another-psource"
source "file://#{lib_path("gitp")}", :type => :psource do
source "#{file_uri_for(lib_path("gitp"))}", :type => :psource do
end
G
end
@ -86,11 +86,11 @@ RSpec.describe "bundler source plugin" do
context "explicit default source" do
before do
install_gemfile <<-G
source "file://#{gem_repo2}"
source "#{file_uri_for(gem_repo2)}"
plugin "bundler-source-psource"
source "file://#{lib_path("gitp")}", :type => :psource do
source "#{file_uri_for(lib_path("gitp"))}", :type => :psource do
end
G
end