diff options
author | Claire McQuin <claire@getchef.com> | 2014-12-16 13:03:53 -0800 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-17 18:52:25 -0800 |
commit | 19f7b0f1668e5801f44570f52285f8a1bde516c0 (patch) | |
tree | d53a3cf4d9ae3eeb923054ab1f6799887e8de796 /lib/chef/audit/runner.rb | |
parent | 5531cabf5640607874fd24c5e9c6006d848ec69b (diff) | |
download | chef-19f7b0f1668e5801f44570f52285f8a1bde516c0.tar.gz |
Unit tests for audit-mode in chef-solo.
* Audits are disabled by default.
* Also, updated spec file to use RSpec :let.
Diffstat (limited to 'lib/chef/audit/runner.rb')
-rw-r--r-- | lib/chef/audit/runner.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb index 1450ef7f61..4017593c55 100644 --- a/lib/chef/audit/runner.rb +++ b/lib/chef/audit/runner.rb @@ -108,8 +108,6 @@ class Chef # the output stream to be changed for a formatter once the formatter has # been added. def set_streams - # TODO: Do some testing to ensure these will output/output properly to - # a file. RSpec.configuration.output_stream = Chef::Config[:log_location] RSpec.configuration.error_stream = Chef::Config[:log_location] end @@ -135,12 +133,9 @@ class Chef end end - # Set up the backend for Specinfra/Serverspec. + # Set up the backend for Specinfra/Serverspec. :exec is the local system. def configure_specinfra - # TODO: We may need to be clever and adjust this based on operating - # system, or make it configurable. E.g., there is a PowerShell backend, - # as well as an SSH backend. - Specinfra.configuration.backend = :exec if Specinfra.configuration.backend != :exec + Specinfra.configuration.backend = :exec end # Iterates through the controls registered to this run_context, builds an |