summaryrefslogtreecommitdiff
path: root/spec/bundler/runtime/platform_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/runtime/platform_spec.rb
parentd8d5e16305ee071f7cf16980788cabcc44799c2e (diff)
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
Diffstat (limited to 'spec/bundler/runtime/platform_spec.rb')
-rw-r--r--spec/bundler/runtime/platform_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/bundler/runtime/platform_spec.rb b/spec/bundler/runtime/platform_spec.rb
index 11fe16f499..ee006433fe 100644
--- a/spec/bundler/runtime/platform_spec.rb
+++ b/spec/bundler/runtime/platform_spec.rb
@@ -3,13 +3,13 @@
RSpec.describe "Bundler.setup with multi platform stuff" do
it "raises a friendly error when gems are missing locally" do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
lockfile <<-G
GEM
- remote: file:#{gem_repo1}/
+ remote: #{file_uri_for(gem_repo1)}/
specs:
rack (1.0)
@@ -35,7 +35,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
it "will resolve correctly on the current platform when the lockfile was targeted for a different one" do
lockfile <<-G
GEM
- remote: file:#{gem_repo1}/
+ remote: #{file_uri_for(gem_repo1)}/
specs:
nokogiri (1.4.2-java)
weakling (= 0.0.3)
@@ -50,7 +50,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
simulate_platform "x86-darwin-10"
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "nokogiri"
G
@@ -60,7 +60,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
it "will add the resolve for the current platform" do
lockfile <<-G
GEM
- remote: file:#{gem_repo1}/
+ remote: #{file_uri_for(gem_repo1)}/
specs:
nokogiri (1.4.2-java)
weakling (= 0.0.3)
@@ -76,7 +76,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
simulate_platform "x86-darwin-100"
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "nokogiri"
gem "platform_specific"
G
@@ -88,7 +88,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
simulate_platform "java"
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "nokogiri"
gem "platform_specific"
G
@@ -103,7 +103,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
it "allows specifying only-ruby-platform on windows with dependency platforms" do
simulate_windows do
install_gemfile! <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "nokogiri", :platforms => [:mingw, :mswin, :x64_mingw, :jruby]
gem "platform_specific"
G
@@ -125,7 +125,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
simulate_windows x64_mingw do
lockfile <<-L
GEM
- remote: file:#{gem_repo2}/
+ remote: #{file_uri_for(gem_repo2)}/
specs:
platform_specific (1.0-x86-mingw32)
requires_platform_specific (1.0)
@@ -140,7 +140,7 @@ RSpec.describe "Bundler.setup with multi platform stuff" do
L
install_gemfile! <<-G, :verbose => true
- source "file://#{gem_repo2}"
+ source "#{file_uri_for(gem_repo2)}"
gem "requires_platform_specific"
G