summaryrefslogtreecommitdiff
path: root/spec/bundler/install/gemfile/install_if.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/install/gemfile/install_if.rb
parentd8d5e16305ee071f7cf16980788cabcc44799c2e (diff)
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
Diffstat (limited to 'spec/bundler/install/gemfile/install_if.rb')
-rw-r--r--spec/bundler/install/gemfile/install_if.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/install/gemfile/install_if.rb b/spec/bundler/install/gemfile/install_if.rb
index 1319051fdb..bfdd8fbae8 100644
--- a/spec/bundler/install/gemfile/install_if.rb
+++ b/spec/bundler/install/gemfile/install_if.rb
@@ -3,7 +3,7 @@
describe "bundle install with install_if conditionals" do
it "follows the install_if DSL" do
install_gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
install_if(lambda { true }) do
gem "activesupport", "2.3.5"
end
@@ -20,7 +20,7 @@ describe "bundle install with install_if conditionals" do
lockfile_should_be <<-L
GEM
- remote: file:#{gem_repo1}/
+ remote: #{file_uri_for(gem_repo1)}/
specs:
activesupport (2.3.5)
foo (1.0)