From 22d38547a8db55c1a579c1e939253ad526a158cd Mon Sep 17 00:00:00 2001 From: antima-gupta Date: Wed, 13 May 2020 13:55:37 +0530 Subject: removed cron helper files Signed-off-by: antima-gupta --- spec/unit/resource/helpers/cron_spec.rb | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 spec/unit/resource/helpers/cron_spec.rb (limited to 'spec/unit') diff --git a/spec/unit/resource/helpers/cron_spec.rb b/spec/unit/resource/helpers/cron_spec.rb deleted file mode 100644 index f1e3457a2c..0000000000 --- a/spec/unit/resource/helpers/cron_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require "spec_helper" -require "chef/resource/helpers/cron" - -describe Chef::ResourceHelpers::Cron do - - describe "#weekday_in_crontab" do - context "when weekday is symbol with full name as a day of week" do - it "should return weekday in crontab standard format" do - expect(Chef::ResourceHelpers::Cron.weekday_in_crontab(:wednesday)).to eq("3") - end - end - - context "when weekday is a number in a string" do - it "should return the string" do - expect(Chef::ResourceHelpers::Cron.weekday_in_crontab("3")).to eq("3") - end - end - - context "when weekday is string with the short name as a day of week" do - it "should return the number string in crontab standard format" do - expect(Chef::ResourceHelpers::Cron.weekday_in_crontab("mon")).to eq("1") - end - end - - context "when weekday is an integer" do - it "should return the integer" do - expect(Chef::ResourceHelpers::Cron.weekday_in_crontab(1)).to eq(1) - end - end - end -end -- cgit v1.2.1