diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-07 13:42:39 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-07 13:42:39 -0800 |
commit | e921e921fbbd759b5dc43404b45f1dc198bd7417 (patch) | |
tree | 3445709ab2cea81e02ea8fbae436d0656cb1959c /spec/integration | |
parent | 1c9970d97b043e250b5d000ce2f581f4a7466e72 (diff) | |
download | chef-e921e921fbbd759b5dc43404b45f1dc198bd7417.tar.gz |
Properly deprecate old Chef::Platform methods
These should have been deprecated formally in 12.5.1 after the
Dynamic Provider-Resolver'ing of the internal chef resources
was completed.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/recipes/recipe_dsl_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/integration/recipes/recipe_dsl_spec.rb b/spec/integration/recipes/recipe_dsl_spec.rb index 456319c306..ce784b11ca 100644 --- a/spec/integration/recipes/recipe_dsl_spec.rb +++ b/spec/integration/recipes/recipe_dsl_spec.rb @@ -1425,6 +1425,7 @@ describe "Recipe DSL methods" do end it "my_resource fails to find a provider (and calls provides)" do + Chef::Config[:treat_deprecation_warnings_as_errors] = false my_resource = self.my_resource expect_converge do instance_eval("#{my_resource} 'foo'") @@ -1435,6 +1436,7 @@ describe "Recipe DSL methods" do context "that does not provide :my_resource" do it "my_resource fails to find a provider (and calls provides)" do + Chef::Config[:treat_deprecation_warnings_as_errors] = false my_resource = self.my_resource expect_converge do instance_eval("#{my_resource} 'foo'") @@ -1510,6 +1512,7 @@ describe "Recipe DSL methods" do end it "looks up the provider in Chef::Provider converting the resource name from snake case to camel case" do + Chef::Config[:treat_deprecation_warnings_as_errors] = false resource = nil recipe = converge do resource = lw_resource_with_hw_provider_test_case("blah") {} |