Commit 78c1f459 authored by Tim Smith's avatar Tim Smith

Add test that we cleanup the legacy files

parent e8539b8d
......@@ -19,6 +19,13 @@
include_recipe 'cron'
# create a file with periods as if the older version of this cookbook raspbian
# the provider should clean it up and we'll test that it doesn't exists
file '/etc/cron.d/job.with.periods' do
content 'old junk'
action :create
end
cron_d 'bizarrely-scheduled-usage-report' do
minute '*/5'
hour '1,23'
......
......@@ -43,4 +43,9 @@ else
describe file('/etc/cron.d/job-with-periods') do
it { should exist }
end
# we created this in the test recipe and the provider should clean it up
describe file('/etc/cron.d/job.with.periods') do
it { should_not exist }
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment