summaryrefslogtreecommitdiff
path: root/spec/unit/resource_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-12-07 13:42:39 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-07 13:42:39 -0800
commite921e921fbbd759b5dc43404b45f1dc198bd7417 (patch)
tree3445709ab2cea81e02ea8fbae436d0656cb1959c /spec/unit/resource_spec.rb
parent1c9970d97b043e250b5d000ce2f581f4a7466e72 (diff)
downloadchef-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/unit/resource_spec.rb')
-rw-r--r--spec/unit/resource_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index 68fc675b37..fbe4544c19 100644
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -838,6 +838,8 @@ describe Chef::Resource do
it "should run only_if/not_if conditionals when notified to run another action (CHEF-972)" do
snitch_var1 = snitch_var2 = 0
runner = Chef::Runner.new(run_context)
+
+ Chef::Config[:treat_deprecation_warnings_as_errors] = false
Chef::Platform.set(
:resource => :cat,
:provider => Chef::Provider::SnakeOil