summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-03-31 17:58:57 +0800
committerAndre Arko <andre@arko.net>2014-03-31 17:58:57 +0800
commit5a37299c1db5181063b178874d9e91f73f97f8d0 (patch)
treea8987016db2f0ea926eb3ff2dcae507fa8ac8a35 /spec/spec_helper.rb
parentb98022843434b7d2482ce62f4fa7a2d2422b90c7 (diff)
downloadbundler-5a37299c1db5181063b178874d9e91f73f97f8d0.tar.gz
make the sudo test env more obvious
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 5deb1e7bc0..1a183ea5fc 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -45,7 +45,7 @@ RSpec.configure do |config|
config.include Spec::Sudo
config.include Spec::Permissions
- if Spec::Sudo.test_sudo?
+ if ENV['BUNDLER_SUDO_TESTS'] && Spec::Sudo.present?
config.filter_run :sudo => true
else
config.filter_run_excluding :sudo => true