From cb27bdeb638ae3643bc7beaf45ee9ef8f0c9c4cf Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 15 Apr 2019 15:36:19 -0700 Subject: Enable the use_inline_resources deprecation We had planned to enable this in the Chef 13 cycle and never did. Signed-off-by: Tim Smith --- lib/chef/provider.rb | 3 +-- spec/unit/provider_spec.rb | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index fb4ac9f659..20e90a648e 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -75,8 +75,7 @@ class Chef # # @return [void] def self.use_inline_resources - # Uncomment this in Chef 13.6. - # Chef.deprecated(:use_inline_resources, "The use_inline_resources mode is no longer optional and the line enabling it can be removed") + Chef.deprecated(:use_inline_resources, "The use_inline_resources mode is no longer optional and the line enabling it can be removed") end # delegate to the resource diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb index 496871614a..5ff29b3085 100644 --- a/spec/unit/provider_spec.rb +++ b/spec/unit/provider_spec.rb @@ -193,7 +193,6 @@ describe Chef::Provider do context "when using use_inline_resources" do it "should log a deprecation warning" do - pending Chef::VERSION.start_with?("14.1") expect(Chef).to receive(:deprecated).with(:use_inline_resources, kind_of(String)) Class.new(described_class) { use_inline_resources } end -- cgit v1.2.1