summaryrefslogtreecommitdiff
path: root/spec/unit/resource/helpers/cron_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/helpers/cron_spec.rb')
-rw-r--r--spec/unit/resource/helpers/cron_spec.rb31
1 files changed, 0 insertions, 31 deletions
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