diff options
author | Thom May <thom@chef.io> | 2016-07-20 16:39:08 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-07-29 07:27:51 +0100 |
commit | e1d2ac813ed55f98b73144daa16083d0ce9f795f (patch) | |
tree | f00bb301dd8be12aa4440a04fc2f8d28554d3c36 /spec/functional | |
parent | ac30759d76a0634071ee0c65531b8fd2be2f7bcf (diff) | |
download | chef-e1d2ac813ed55f98b73144daa16083d0ce9f795f.tar.gz |
Fix handling of empty string values for cron attrstm/empty_cron_attributes
This is a rebase and clean up of #311
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/resource/cron_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb index 2a6811ef9f..f5948191c5 100644 --- a/spec/functional/resource/cron_spec.rb +++ b/spec/functional/resource/cron_spec.rb @@ -120,7 +120,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do return if %w{aix solaris}.include?(ohai[:platform]) # Test if the attribute exists on newly created cron cron_should_exists(cron_name, "") - expect(shell_out("crontab -l -u #{new_resource.user} | grep \"#{attribute.upcase}=#{value}\"").exitstatus).to eq(0) + expect(shell_out("crontab -l -u #{new_resource.user} | grep '#{attribute.upcase}=\"#{value}\"'").exitstatus).to eq(0) end after do |