diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-31 23:14:40 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-31 23:14:40 -0700 |
commit | f5ab1f1c6a8e5156e677c902ae67efb51976e3ca (patch) | |
tree | e0689082c04bb39b0299e181c60242731e39cc0b /spec/functional | |
parent | 2fba74b2b07f9ae0899a784ce467632dbd8bbd67 (diff) | |
download | chef-f5ab1f1c6a8e5156e677c902ae67efb51976e3ca.tar.gz |
remove popen4 from cron resource + fix specs
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/resource/cron_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb index f5948191c5..156babcffe 100644 --- a/spec/functional/resource/cron_spec.rb +++ b/spec/functional/resource/cron_spec.rb @@ -1,7 +1,7 @@ # encoding: UTF-8 # # Author:: Kaustubh Deorukhkar (<kaustubh@clogeny.com>) -# Copyright:: Copyright 2013-2016, Chef Software Inc. +# Copyright:: Copyright 2013-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -161,7 +161,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do end def cron_create_should_raise_exception - expect { new_resource.run_action(:create) }.to raise_error(Chef::Exceptions::Cron, /Error updating state of #{new_resource.name}, exit: 1/) + expect { new_resource.run_action(:create) }.to raise_error(Mixlib::ShellOut::ShellCommandFailed) cron_should_not_exists(new_resource.name) end |