summaryrefslogtreecommitdiff
path: root/spec/bundler/install/gems/sudo_spec.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-15 21:31:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-22 20:32:30 +0900
commitc7ebeb7eda9f7f6bbb48effe1efc026eeb64d09c (patch)
treeb516b3b5119331d4d8431b4d17f552e2c8e798fe /spec/bundler/install/gems/sudo_spec.rb
parentf4f157fc81b940c0f76a01ee266a08e6bba69b6b (diff)
Sync Bundler PR #3624
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3114
Diffstat (limited to 'spec/bundler/install/gems/sudo_spec.rb')
-rw-r--r--spec/bundler/install/gems/sudo_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/bundler/install/gems/sudo_spec.rb b/spec/bundler/install/gems/sudo_spec.rb
index 3e4c1ad1c1..bab8412170 100644
--- a/spec/bundler/install/gems/sudo_spec.rb
+++ b/spec/bundler/install/gems/sudo_spec.rb
@@ -145,6 +145,8 @@ RSpec.describe "when using sudo", :sudo => true do
sudo "mkdir -p #{gem_home}"
sudo "chmod ugo-w #{gem_home}"
+ system_gems :bundler, :path => gem_home
+
gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
gem "rack", '1.0'