diff options
Diffstat (limited to 'spec/functional/resource/cron_spec.rb')
-rw-r--r-- | spec/functional/resource/cron_spec.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb index 394d9a3e82..12494b6ddb 100644 --- a/spec/functional/resource/cron_spec.rb +++ b/spec/functional/resource/cron_spec.rb @@ -152,17 +152,10 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do new_resource.run_action(:delete) end - it "should not create cron with invalid minute" do - expect { new_resource.run_action(:create) }.to raise_error(Chef::Exceptions::ValidationFailed) - new_resource.minute "invalid" - cron_should_not_exists(new_resource.name) - end - it "should not create cron with invalid user" do new_resource.user "1-really-really-invalid-user-name" expect { new_resource.run_action(:create) }.to raise_error(Chef::Exceptions::Cron) cron_should_not_exists(new_resource.name) end - end end |