summaryrefslogtreecommitdiff
path: root/spec/unit/resource/chef_client_scheduled_task_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/chef_client_scheduled_task_spec.rb')
-rw-r--r--spec/unit/resource/chef_client_scheduled_task_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/chef_client_scheduled_task_spec.rb b/spec/unit/resource/chef_client_scheduled_task_spec.rb
index 05a7b214d6..4b59c0861f 100644
--- a/spec/unit/resource/chef_client_scheduled_task_spec.rb
+++ b/spec/unit/resource/chef_client_scheduled_task_spec.rb
@@ -46,13 +46,13 @@ describe Chef::Resource::ChefClientScheduledTask do
it "validates the start_time property input" do
expect { resource.start_time("8:00 am") }.to raise_error(Chef::Exceptions::ValidationFailed)
expect { resource.start_time("8:00") }.to raise_error(Chef::Exceptions::ValidationFailed)
- expect { resource.start_time("08:00") }.not_to raise_error(Chef::Exceptions::ValidationFailed)
+ expect { resource.start_time("08:00") }.not_to raise_error
end
it "validates the start_date property input" do
expect { resource.start_date("2/1/20") }.to raise_error(Chef::Exceptions::ValidationFailed)
expect { resource.start_date("02/01/20") }.to raise_error(Chef::Exceptions::ValidationFailed)
- expect { resource.start_date("02/01/2020") }.not_to raise_error(Chef::Exceptions::ValidationFailed)
+ expect { resource.start_date("02/01/2020") }.not_to raise_error
end
it "raises an error if frequency_modifier is not a positive number" do