diff options
Diffstat (limited to 'spec/runtime/platform_spec.rb')
-rw-r--r-- | spec/runtime/platform_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/runtime/platform_spec.rb b/spec/runtime/platform_spec.rb index 11fe16f499..ee006433fe 100644 --- a/spec/runtime/platform_spec.rb +++ b/spec/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 |