summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-07-24 15:55:01 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-07-24 17:21:24 -0500
commit65c05e88eaba044117e80aa40c8a8e7ffc8f6a27 (patch)
tree006116f0ca28b7cb419634b011d9780ca698971f
parenta0c3def86ab8dc4116208eea02643fc3f4883d69 (diff)
downloadbundler-65c05e88eaba044117e80aa40c8a8e7ffc8f6a27.tar.gz
Ensure sudo specs are run against system gems for consistencyseg-validate-settings
-rw-r--r--spec/install/gems/sudo_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/install/gems/sudo_spec.rb b/spec/install/gems/sudo_spec.rb
index afcc33cc74..ae94eee9c6 100644
--- a/spec/install/gems/sudo_spec.rb
+++ b/spec/install/gems/sudo_spec.rb
@@ -4,6 +4,7 @@ RSpec.describe "when using sudo", :sudo => true do
describe "and BUNDLE_PATH is writable" do
context "but BUNDLE_PATH/build_info is not writable" do
before do
+ bundle! "config path.system true"
subdir = system_gem_path("cache")
subdir.mkpath
sudo "chmod u-w #{subdir}"
@@ -24,6 +25,7 @@ RSpec.describe "when using sudo", :sudo => true do
describe "and GEM_HOME is owned by root" do
before :each do
+ bundle! "config path.system true"
chown_system_gems_to_root
end
@@ -127,6 +129,7 @@ RSpec.describe "when using sudo", :sudo => true do
describe "and GEM_HOME is not writable" do
it "installs" do
+ bundle! "config path.system true"
gem_home = tmp("sudo_gem_home")
sudo "mkdir -p #{gem_home}"
sudo "chmod ugo-w #{gem_home}"