diff options
author | kaustubh-d <kausubh@clogeny.com> | 2013-07-22 01:30:17 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-08-04 08:27:07 -0700 |
commit | 1b92515fa97c36da9868b2bc5b136fed3a5a3351 (patch) | |
tree | 1fe866504ada06b6f4fce0f8c6c8afb727efec19 /spec/unit/provider/cron_spec.rb | |
parent | eeb95c154b8271a7db9f1c4d986466b87699a0e5 (diff) | |
download | chef-1b92515fa97c36da9868b2bc5b136fed3a5a3351.tar.gz |
fix cron unit test, this worked since @cron_exists was not reset properly.
Diffstat (limited to 'spec/unit/provider/cron_spec.rb')
-rw-r--r-- | spec/unit/provider/cron_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/provider/cron_spec.rb b/spec/unit/provider/cron_spec.rb index 5a848a30e6..56d51cd23f 100644 --- a/spec/unit/provider/cron_spec.rb +++ b/spec/unit/provider/cron_spec.rb @@ -563,7 +563,7 @@ HOME=/home/foo @provider.stub!(:read_crontab).and_return(<<-CRONTAB) 0 2 * * * /some/other/command -# Chef Name: something else +# Chef Name: cronhole some stuff * 5 * * * /bin/true # Another comment @@ -581,6 +581,7 @@ CRONTAB end it "should log nothing changed" do + Chef::Log.should_receive(:debug).with("Found cron '#{@new_resource.name}'") Chef::Log.should_receive(:debug).with("Skipping existing cron entry '#{@new_resource.name}'") @provider.run_action(:create) end |