diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-31 12:24:00 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-31 14:09:07 -0700 |
commit | 1b0cc1b541a9015fc925fc5d1ada6f85934fc0c7 (patch) | |
tree | 8a6f2b2c99faa926c705216a47fb0d1f94cd1cf0 /spec/unit/resource_collection_spec.rb | |
parent | 5dacd74ce5cccc4dbb651a45f9e591dd1921cc6e (diff) | |
download | chef-1b0cc1b541a9015fc925fc5d1ada6f85934fc0c7.tar.gz |
Chef-13: fix notifying array resources
this also deprecates the multi-resource notification syntax where
`foo[a,b]` would attempt to notify both `foo[a]` and `foo[b]` because
that is hella ambiguous.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/resource_collection_spec.rb')
-rw-r--r-- | spec/unit/resource_collection_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/resource_collection_spec.rb b/spec/unit/resource_collection_spec.rb index 76038e51b9..c696572b13 100644 --- a/spec/unit/resource_collection_spec.rb +++ b/spec/unit/resource_collection_spec.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob (<adam@chef.io>) # Author:: Christopher Walters (<cw@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -219,6 +219,7 @@ describe Chef::ResourceCollection do end it "should find resources by strings of zen_master[a,b]" do + Chef::Config[:treat_deprecation_warnings_as_errors] = false load_up_resources results = rc.resources("zen_master[monkey,dog]") expect(results.length).to eql(2) |