summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-10-16 16:54:53 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-22 13:03:31 -0700
commitf61750d72e4cfbe019eb031c7f46f9404b1b8558 (patch)
treec769c2820cafbac0b4e23665bbe699662deec9bd
parent7412b9721d853bc7afb78c5dc1f3d74441596dd1 (diff)
downloadchef-f61750d72e4cfbe019eb031c7f46f9404b1b8558.tar.gz
Updated client_spec to not run event logger
-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)