summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRanjib Dey <ranjib@pagerduty.com>2013-11-01 01:41:37 -0700
committerBryan McLellan <btm@opscode.com>2013-11-26 07:31:19 -0800
commitcf57547e5c760f0ac253ad501b6ca9dce7c6930d (patch)
treeae6dce27a20cc866f0a0ed668cd4ef84ddc139f0
parent2e502dac2647ac76eb875188df9187b3244bff35 (diff)
downloadchef-cf57547e5c760f0ac253ad501b6ca9dce7c6930d.tar.gz
add spec for mailto attr comparison bug
-rw-r--r--spec/unit/provider/cron_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/provider/cron_spec.rb b/spec/unit/provider/cron_spec.rb
index 8a819b699c..7dc1f7e41f 100644
--- a/spec/unit/provider/cron_spec.rb
+++ b/spec/unit/provider/cron_spec.rb
@@ -276,6 +276,7 @@ CRONTAB
@current_resource.user "root"
@current_resource.minute "30"
@current_resource.command "/bin/true"
+ @current_resource.mailto "foo@bar.com"
@provider.current_resource = @current_resource
end
@@ -291,6 +292,11 @@ CRONTAB
@provider.cron_different?.should eql(true)
end
+ it "should return true if mailto doesn't match" do
+ @new_resource.mailto(nil)
+ @provider.cron_different?.should eql(true)
+ end
+
it "should return false if the objects are identical" do
@provider.cron_different?.should == false
end