Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Also, don't run sudo tests when sudo isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Apr 30, 2011
1 parent 84cb7bb commit b556037
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -39,8 +39,13 @@
config.include Spec::Platforms
config.include Spec::Sudo

if Spec::Sudo.test_sudo?
config.filter_run :sudo => true
else
config.filter_run_excluding :sudo => true
end

config.filter_run :focused => true unless ENV['CI']
config.filter_run :sudo => true if Spec::Sudo.test_sudo?
config.run_all_when_everything_filtered = true
config.alias_example_to :fit, :focused => true

Expand Down

0 comments on commit b556037

Please sign in to comment.