diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-11 10:48:00 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-11 10:48:00 -0700 |
commit | f5ec0e2c99716e2353a2fbd4b215d154bae24143 (patch) | |
tree | 80a190de06664348f5ec3b38c13d49bbf0737e68 /spec/integration | |
parent | bb9a4d31ed5864e00b5379f6b69acb2dc6588133 (diff) | |
download | chef-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.rb | 8 |
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 |