diff options
author | Corey Hemminger <hemminger@hotmail.com> | 2017-05-02 15:52:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 15:52:07 -0500 |
commit | d4817f032e5aa114141141b6b5b41e9c9efb3310 (patch) | |
tree | acf9a5310f1ff2ddf3307fa02f517daf81a99254 | |
parent | 09681d1936452aab440957dbbdebc5c261aeef54 (diff) | |
download | chef-d4817f032e5aa114141141b6b5b41e9c9efb3310.tar.gz |
fixed test with @NimishaS suggestion. Signed-off-by: Corey Hemminger corey.hemminger@nativex.com
Signed-off-by: Corey Hemminger corey.hemminger@nativex.com
-rw-r--r-- | spec/unit/resource/windows_task_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/unit/resource/windows_task_spec.rb b/spec/unit/resource/windows_task_spec.rb index acbfeaa926..2b3ee16024 100644 --- a/spec/unit/resource/windows_task_spec.rb +++ b/spec/unit/resource/windows_task_spec.rb @@ -167,15 +167,11 @@ describe Chef::Resource::WindowsTask do context "#validate_create_day" do it "raises error if frequency is not :weekly or :monthly" do - expect { resource.send(:validate_create_day, "Mon", :daily) }.to raise_error("day attribute is only valid for tasks that run weekly of monthly") - end - - it "accepts a valid day range" do - expect { resource.send(:validate_create_day, "Mon-Fri", :weekly) }.not_to raise_error + expect { resource.send(:validate_create_day, "Mon", :once) }.to raise_error("day attribute is only valid for tasks that run monthly or weekly") end it "accepts a valid single day" do - expect { resource.send(:validate_create_day, "Mon", :monthly) }.not_to raise_error + expect { resource.send(:validate_create_day, "Mon", :weekly) }.not_to raise_error end it "accepts a comma separated list of valid days" do |