summaryrefslogtreecommitdiff
path: root/lib/chef/audit
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-12-15 14:22:35 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:24 -0800
commit44fc2faadb2d63c77fb1bfacb973be615a842c42 (patch)
treeb2750a454ee48dedd63bd093156fdefc9e5eb07f /lib/chef/audit
parent66727a7a3e8e986ca3499e0e8693c332ab309247 (diff)
downloadchef-44fc2faadb2d63c77fb1bfacb973be615a842c42.tar.gz
Finishing unit and functional test coverage for audit runner
Diffstat (limited to 'lib/chef/audit')
-rw-r--r--lib/chef/audit/runner.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb
index 5d485a8804..1450ef7f61 100644
--- a/lib/chef/audit/runner.rb
+++ b/lib/chef/audit/runner.rb
@@ -74,9 +74,6 @@ class Chef
# prevents Specinfra and Serverspec from modifying the RSpec configuration
# used by our spec tests.
def require_deps
- # TODO: We need to figure out a way to give audits its own configuration
- # object. This involves finding a way to load these files w/o them adding
- # to the configuration object used by our spec tests.
require 'rspec'
require 'rspec/its'
require 'specinfra'
@@ -143,7 +140,7 @@ class Chef
# 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
+ Specinfra.configuration.backend = :exec if Specinfra.configuration.backend != :exec
end
# Iterates through the controls registered to this run_context, builds an