summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-04-15 15:36:19 -0700
committerTim Smith <tsmith@chef.io>2019-04-15 15:36:19 -0700
commitcb27bdeb638ae3643bc7beaf45ee9ef8f0c9c4cf (patch)
tree7b82e5a8ed0f3be14bca4cf3d088387604fd4f6b
parent62ea7382021593d117a78a0d5f60e39722c2e4d4 (diff)
downloadchef-use_inline_resource.tar.gz
Enable the use_inline_resources deprecationuse_inline_resource
We had planned to enable this in the Chef 13 cycle and never did. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider.rb3
-rw-r--r--spec/unit/provider_spec.rb1
2 files changed, 1 insertions, 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