diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-05-04 10:34:57 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-05-04 10:34:57 -0700 |
commit | 5ff105979452421f137a91262ddf801be7ddcdfa (patch) | |
tree | d4f7351cc66c092343de8326ddb954a6967736bf /spec | |
parent | e8f006f7aee4d5dd768df6306fdf48727f6fcaf3 (diff) | |
download | chef-5ff105979452421f137a91262ddf801be7ddcdfa.tar.gz |
Fix yum specs
Reset the singleton instance before starting the test, because
singletons.
Also better clears up some internal state when the daemon gets reaped
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/package/yum/python_helper_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/provider/package/yum/python_helper_spec.rb b/spec/unit/provider/package/yum/python_helper_spec.rb index 39c067d135..b8336a500b 100644 --- a/spec/unit/provider/package/yum/python_helper_spec.rb +++ b/spec/unit/provider/package/yum/python_helper_spec.rb @@ -21,6 +21,7 @@ require "spec_helper" describe Chef::Provider::Package::Yum::PythonHelper do let(:helper) { Chef::Provider::Package::Yum::PythonHelper.instance } + before(:each) { Singleton.__init__(Chef::Provider::Package::Yum::PythonHelper) } it "propagates stacktraces on stderr from the forked subprocess", :rhel do allow(helper).to receive(:yum_command).and_return("ruby -e 'raise \"your hands in the air\"'") |