summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJoshua Miller <joshuamiller01@gmail.com>2019-01-09 18:11:45 -0800
committerPhil Dibowitz <phil@ipom.com>2019-01-09 18:11:45 -0800
commit095474cf0bc7d792237605b9007afa67d14c3f27 (patch)
tree360d3e4bf1578d1ed9453896eebcd549c636e9fb /spec
parentcab850895efbeeb2f054abebd559d68ea00a456e (diff)
downloadchef-095474cf0bc7d792237605b9007afa67d14c3f27.tar.gz
Don't system exit on ohai CriticalPluginFailure (#8098)
Signed-off-by: Joshua Miller <joshmiller@fb.com>
Diffstat (limited to 'spec')
-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 9e20058846..1d9dd54290 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -51,7 +51,7 @@ describe Chef::Client do
class CriticalPluginFailure < Error; end
end
expect(ohai_system).to receive(:all_plugins) { raise Ohai::Exceptions::CriticalPluginFailure }
- expect { client.run_ohai }.to raise_error(SystemExit)
+ expect { client.run_ohai }.to raise_error(Ohai::Exceptions::CriticalPluginFailure)
end
end