summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/inject_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/commands/inject_spec.rb
parentd8d5e16305ee071f7cf16980788cabcc44799c2e (diff)
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
Diffstat (limited to 'spec/bundler/commands/inject_spec.rb')
-rw-r--r--spec/bundler/commands/inject_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/commands/inject_spec.rb b/spec/bundler/commands/inject_spec.rb
index da31849be7..01c1f91877 100644
--- a/spec/bundler/commands/inject_spec.rb
+++ b/spec/bundler/commands/inject_spec.rb
@@ -3,7 +3,7 @@
RSpec.describe "bundle inject", :bundler => "< 3" do
before :each do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
end
@@ -53,9 +53,9 @@ Usage: "bundle inject GEM VERSION"
context "with source option" do
it "add gem with source option in gemfile" do
- bundle "inject 'foo' '>0' --source file://#{gem_repo1}"
+ bundle "inject 'foo' '>0' --source #{file_uri_for(gem_repo1)}"
gemfile = bundled_app("Gemfile").read
- str = "gem \"foo\", \"> 0\", :source => \"file://#{gem_repo1}\""
+ str = "gem \"foo\", \"> 0\", :source => \"#{file_uri_for(gem_repo1)}\""
expect(gemfile).to include str
end
end
@@ -105,7 +105,7 @@ Usage: "bundle inject GEM VERSION"
it "doesn't allow Gemfile changes" do
gemfile <<-G
- source "file://#{gem_repo1}"
+ source "#{file_uri_for(gem_repo1)}"
gem "rack-obama"
G
bundle "inject 'rack' '> 0'"