summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jmundrawala@chef.io>2017-09-22 12:53:37 -0700
committerJay Mundrawala <jmundrawala@chef.io>2017-09-25 05:50:21 -0700
commit5e13fe603bba737eebcc130800aa3d9698cfb511 (patch)
tree364412af353d59bf9f21f0a5e9fae026c3bd64f5
parent9a6696d1d8a87bba6cab974bd49b661bc59c9513 (diff)
downloadchef-jdm/win-task-start-day.tar.gz
Fix another testjdm/win-task-start-day
Signed-off-by: Jay Mundrawala <jmundrawala@chef.io>
-rw-r--r--spec/unit/provider/windows_task_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/windows_task_spec.rb b/spec/unit/provider/windows_task_spec.rb
index 2f4562fe5d..b18d842bfa 100644
--- a/spec/unit/provider/windows_task_spec.rb
+++ b/spec/unit/provider/windows_task_spec.rb
@@ -429,9 +429,9 @@ describe Chef::Provider::WindowsTask do
end
describe "#convert_user_date_to_system_date" do
- it "when current resource start date is '30-May-2017' then returns '05/30/2017'" do
- allow(provider).to receive(:get_system_short_date_format).and_return("MM/dd/yyyy")
- expect(provider.send(:convert_user_date_to_system_date, "30-May-2017")).to eq("05/30/2017")
+ it "when current resource start date is '05/30/2017' then returns '30/05/2017'" do
+ allow(provider).to receive(:get_system_short_date_format).and_return("dd/MM/yyyy")
+ expect(provider.send(:convert_user_date_to_system_date, "05/30/2017")).to eq("30/05/2017")
end
end