diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-15 12:38:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-15 12:38:43 -0700 |
commit | 9ee90fb00d734834910ed30ad13a659b06d75ca4 (patch) | |
tree | 7ac0b8e47bd181f72445432e5a2e63535eed4902 /spec/unit | |
parent | 746475147c621e70906d60895690ff83aeb75636 (diff) | |
download | chef-9ee90fb00d734834910ed30ad13a659b06d75ca4.tar.gz |
ignore deprecation warning in test
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/recipe_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb index f9b4bd9b9c..e5dbd42f70 100644 --- a/spec/unit/recipe_spec.rb +++ b/spec/unit/recipe_spec.rb @@ -306,6 +306,7 @@ describe Chef::Recipe do 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 |