diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-23 09:32:06 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-23 09:32:06 -0700 |
commit | 94dc0364dfa99dba3a5dbfbefeb08f41926b5468 (patch) | |
tree | 4a5ad589f4b22ae57ee98a6223c121c27b185599 /spec/unit | |
parent | dd78f3ec35dc9680681b05d14bc0baa59bccb8ac (diff) | |
parent | 970dc354d242afb0eb00060c5dde9d592ab333a4 (diff) | |
download | chef-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.rb | 2 |
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) |