summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorsiddheshwar-more <siddheshwar.more@clogeny.com>2013-07-22 18:27:38 +0530
committeradamedx <adamed@opscode.com>2013-09-03 15:21:44 -0700
commitc99dbe8106b4007f58a6f056ba16c7b1e611dbfb (patch)
tree1e06961e8db4cbbd3bf831123e9129491a6bf9f4 /spec/spec_helper.rb
parent92827d9d5c5a92e1acea92c9aeaec28c700ee44c (diff)
downloadchef-c99dbe8106b4007f58a6f056ba16c7b1e611dbfb.tar.gz
Updated spec helper to set requires_root true for windows administrator user
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 3173060480..5b95d0e7c4 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -114,7 +114,7 @@ RSpec.configure do |config|
config.filter_run_excluding :ruby_gte_19_only => true unless ruby_gte_19?
config.filter_run_excluding :ruby_20_only => true unless ruby_20?
config.filter_run_excluding :ruby_gte_20_only => true unless ruby_gte_20?
- config.filter_run_excluding :requires_root => true unless ENV['USER'] == 'root' || ENV['LOGIN'] == 'root'
+ config.filter_run_excluding :requires_root => true unless ENV['USER'] == 'root' || ENV['LOGIN'] == 'root' || ENV['USER'] == 'Administrator'
config.filter_run_excluding :requires_root_or_running_windows => true unless (ENV['USER'] == 'root' or windows?)
config.filter_run_excluding :requires_unprivileged_user => true if ENV['USER'] == 'root'
config.filter_run_excluding :uses_diff => true unless has_diff?