summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-07 11:11:45 -0800
committerTim Smith <tsmith@chef.io>2017-12-07 13:27:30 -0800
commit6ad0ac95c33969a16b79fd32cd987fe68c150266 (patch)
tree5baa154afc57c7c6e5ba74e1e9bdd682d40a3bd3 /spec
parentc1e6bb1a47d821dbbab59eaf16a46c3ff02f0ccf (diff)
downloadchef-6ad0ac95c33969a16b79fd32cd987fe68c150266.tar.gz
Validate the start_date is correctly passed
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/windows_task_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/windows_task_spec.rb b/spec/unit/resource/windows_task_spec.rb
index 65b4111e8e..725aa0fd86 100644
--- a/spec/unit/resource/windows_task_spec.rb
+++ b/spec/unit/resource/windows_task_spec.rb
@@ -169,7 +169,7 @@ describe Chef::Resource::WindowsTask do
context "#validate_start_day" do
it "raise error if start_day is passed with frequency :on_logon" do
resource.frequency :on_logon
- expect { resource.send(:validate_start_day, "Wed", :on_logon) }.to raise_error(Chef::Exceptions::ArgumentError, "`start_day` property is not supported with frequency: on_logon")
+ expect { resource.send(:validate_start_day, "02/07/1984", :on_logon) }.to raise_error(Chef::Exceptions::ArgumentError, "`start_day` property is not supported with frequency: on_logon")
end
end