summaryrefslogtreecommitdiff
path: root/spec/bundler/install/gems/env_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/install/gems/env_spec.rb')
-rw-r--r--spec/bundler/install/gems/env_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/install/gems/env_spec.rb b/spec/bundler/install/gems/env_spec.rb
index 0dccbbfd24..a6dfadcfc8 100644
--- a/spec/bundler/install/gems/env_spec.rb
+++ b/spec/bundler/install/gems/env_spec.rb
@@ -4,7 +4,7 @@ RSpec.describe "bundle install with ENV conditionals" do
describe "when just setting an ENV key as a string" do
before :each do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
env "BUNDLER_TEST" do
gem "rack"
@@ -27,7 +27,7 @@ RSpec.describe "bundle install with ENV conditionals" do
describe "when just setting an ENV key as a symbol" do
before :each do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
env :BUNDLER_TEST do
gem "rack"
@@ -50,7 +50,7 @@ RSpec.describe "bundle install with ENV conditionals" do
describe "when setting a string to match the env" do
before :each do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
env "BUNDLER_TEST" => "foo" do
gem "rack"
@@ -79,7 +79,7 @@ RSpec.describe "bundle install with ENV conditionals" do
describe "when setting a regex to match the env" do
before :each do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
env "BUNDLER_TEST" => /foo/ do
gem "rack"