summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-10-11 10:48:00 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-10-11 10:48:00 -0700
commitf5ec0e2c99716e2353a2fbd4b215d154bae24143 (patch)
tree80a190de06664348f5ec3b38c13d49bbf0737e68 /spec/integration
parentbb9a4d31ed5864e00b5379f6b69acb2dc6588133 (diff)
downloadchef-f5ec0e2c99716e2353a2fbd4b215d154bae24143.tar.gz
use delayed_action in accumulator speclcg/delayed_action
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/recipes/accumulator_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/integration/recipes/accumulator_spec.rb b/spec/integration/recipes/accumulator_spec.rb
index b2107b2c02..e6afe09b8c 100644
--- a/spec/integration/recipes/accumulator_spec.rb
+++ b/spec/integration/recipes/accumulator_spec.rb
@@ -46,11 +46,9 @@ describe "Accumulators" do
variables[:aliases][new_resource.address] ||= []
variables[:aliases][new_resource.address] += new_resource.recipients
action :nothing
+ delayed_action :create
end
end
- log "force delayed notification" do
- notifies :create, "template[#{aliases_temppath}]", :delayed
- end
end
EOM
@@ -148,13 +146,11 @@ describe "Accumulators" do
source "aliases.erb"
variables[:aliases] = {}
action :nothing
+ delayed_action :create
end
end
r.variables[:aliases][address] ||= []
r.variables[:aliases][address] += new_resource.recipients
- log "force delayed notification" do
- notifies :create, "template[#{aliases_temppath}]", :delayed
- end
end
EOM