summaryrefslogtreecommitdiff
path: root/spec/commands/inject_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/inject_spec.rb')
-rw-r--r--spec/commands/inject_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/commands/inject_spec.rb b/spec/commands/inject_spec.rb
index da31849be7..01c1f91877 100644
--- a/spec/commands/inject_spec.rb
+++ b/spec/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'"