summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-10-23 09:32:06 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-23 09:32:06 -0700
commit94dc0364dfa99dba3a5dbfbefeb08f41926b5468 (patch)
tree4a5ad589f4b22ae57ee98a6223c121c27b185599 /spec/unit
parentdd78f3ec35dc9680681b05d14bc0baa59bccb8ac (diff)
parent970dc354d242afb0eb00060c5dde9d592ab333a4 (diff)
downloadchef-94dc0364dfa99dba3a5dbfbefeb08f41926b5468.tar.gz
Merge pull request #2229 from opscode/jdmundrawala/12-evt-log
Logging events to the Windows Event Log
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/client_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index e05245c413..e03773ae03 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -61,6 +61,7 @@ describe Chef::Client do
let(:client_opts) { {} }
let(:client) do
+ Chef::Config[:event_loggers] = []
Chef::Client.new(json_attribs, client_opts).tap do |c|
c.node = node
end
@@ -384,7 +385,6 @@ describe Chef::Client do
@events = double("Chef::EventDispatch::Dispatcher").as_null_object
Chef::EventDispatch::Dispatcher.stub(:new).and_return(@events)
-
# @events is created on Chef::Client.new, so we need to recreate it after mocking
client = Chef::Client.new
client.stub(:load_node).and_raise(Exception)