From 5946d62ad03c57271ccb037680382b1db9fc2e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 6 May 2019 18:06:21 +0200 Subject: Normalize file:// handling in specs --- spec/install/gems/compact_index_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/install/gems/compact_index_spec.rb') diff --git a/spec/install/gems/compact_index_spec.rb b/spec/install/gems/compact_index_spec.rb index e35b630306..2c145ce643 100644 --- a/spec/install/gems/compact_index_spec.rb +++ b/spec/install/gems/compact_index_spec.rb @@ -93,7 +93,7 @@ RSpec.describe "compact index api" do gemfile <<-G source "#{source_uri}" - git "file:///#{lib_path("foo-1.0")}" do + git "#{file_uri_for(lib_path("foo-1.0"))}" do gem 'foo' end G @@ -111,7 +111,7 @@ RSpec.describe "compact index api" do gemfile <<-G source "#{source_uri}" - gem 'foo', :git => "file:///#{lib_path("foo-1.0")}" + gem 'foo', :git => "#{file_uri_for(lib_path("foo-1.0"))}" G bundle! :install, :artifice => "compact_index" @@ -125,7 +125,7 @@ RSpec.describe "compact index api" do build_git "foo" gemfile <<-G source "#{source_uri}" - gem 'foo', :git => "file:///#{lib_path("foo-1.0")}" + gem 'foo', :git => "#{file_uri_for(lib_path("foo-1.0"))}" G bundle "install", :artifice => "compact_index" @@ -623,7 +623,7 @@ The checksum of /versions does not match the checksum provided by the server! So it "strips http basic auth creds when warning about ambiguous sources", :bundler => "< 3" do gemfile <<-G source "#{basic_auth_source_uri}" - source "file://#{gem_repo1}" + source "#{file_uri_for(gem_repo1)}" gem "rack" G -- cgit v1.2.1