diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-14 10:32:38 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-14 10:32:38 -0700 |
commit | 24006a2a9aa2b324f28979da1e13c3e064ddb3ab (patch) | |
tree | b265262cfac32ddd4a05166d80cf0fbb784e8d0f /spec | |
parent | 813117990834b2dbc53c7f81995670ac246a52c8 (diff) | |
download | chef-24006a2a9aa2b324f28979da1e13c3e064ddb3ab.tar.gz |
Chef-13: Remove declare_resource create_if_missing API
Likely nobody cares about this change, I added it and then a
release or two later introduced the better edit_resource style
of API.
I also changed "created_at" to be a proper named parameter, instead
of a positional parameter, which is a breaking change in an API that
has been around for quite some time -- makes the API consistent since
I added it as a named parameter to the new APIs when I wrote them.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/recipe_spec.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb index abba1ceb4d..5ee33b14dd 100644 --- a/spec/unit/recipe_spec.rb +++ b/spec/unit/recipe_spec.rb @@ -253,13 +253,6 @@ describe Chef::Recipe do expect(run_context.resource_collection.count).to eql(2) end - it "does not insert two resources if create_if_missing is used" do - zm_resource - Chef::Config[:treat_deprecation_warnings_as_errors] = false - recipe.declare_resource(:zen_master, "klopp", create_if_missing: true) - expect(run_context.resource_collection.count).to eql(1) - end - context "injecting a different run_context" do let(:run_context2) do events = Chef::EventDispatch::Dispatcher.new |