summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRanjib Dey <ranjib@pagerduty.com>2013-11-01 09:26:53 -0700
committerBryan McLellan <btm@opscode.com>2013-11-26 07:31:19 -0800
commitce6135e76f1be4e1496a052188183e63332ea7dc (patch)
treed08ec8af8e63ab28865fd29e76be13d964f1f20b
parentcf57547e5c760f0ac253ad501b6ca9dce7c6930d (diff)
downloadchef-ce6135e76f1be4e1496a052188183e63332ea7dc.tar.gz
move attribute setting locally inside the spec
-rw-r--r--spec/unit/provider/cron_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/cron_spec.rb b/spec/unit/provider/cron_spec.rb
index 7dc1f7e41f..35656e0ad6 100644
--- a/spec/unit/provider/cron_spec.rb
+++ b/spec/unit/provider/cron_spec.rb
@@ -276,7 +276,6 @@ 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
@@ -293,6 +292,7 @@ CRONTAB
end
it "should return true if mailto doesn't match" do
+ @current_resource.mailto "foo@bar.com"
@new_resource.mailto(nil)
@provider.cron_different?.should eql(true)
end