diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-11-26 14:12:03 -0800 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-17 18:52:21 -0800 |
commit | d454a7214b2738acd9a00e1f29737927a4a4d5d7 (patch) | |
tree | e96081d9922af763215d6ab44ac4b54041c45b96 /lib/chef/audit/runner.rb | |
parent | b079e015f4ebb8c5db600bd49641699cbbacdb10 (diff) | |
download | chef-d454a7214b2738acd9a00e1f29737927a4a4d5d7.tar.gz |
Failing an audit example will now raise an error and make chef exit with a non-zero code
Diffstat (limited to 'lib/chef/audit/runner.rb')
-rw-r--r-- | lib/chef/audit/runner.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb index 2fd33ac0de..b3df70f705 100644 --- a/lib/chef/audit/runner.rb +++ b/lib/chef/audit/runner.rb @@ -35,6 +35,10 @@ class Chef do_run end + def failed_examples? + RSpec.world.reporter.failed_examples.size > 0 + end + private # Prepare to run audits: # - Require files |