From 0de4e6576e55cd0165e08ff86dbfa85abf400dc3 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 5 Dec 2016 11:46:32 -0800 Subject: The suggested fix for the manage_home deprecation is incorrect manage_home: true is not a proper resource property. It should be manage_home true instead. Signed-off-by: Tim Smith --- spec/unit/provider/user/linux_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/provider/user/linux_spec.rb b/spec/unit/provider/user/linux_spec.rb index 819dc5e0fe..ca62f2b150 100644 --- a/spec/unit/provider/user/linux_spec.rb +++ b/spec/unit/provider/user/linux_spec.rb @@ -69,7 +69,7 @@ describe Chef::Provider::User::Linux do it "throws a deprecation warning on setting supports[:manage_home]" do Chef::Config[:treat_deprecation_warnings_as_errors] = false - expect(Chef).to receive(:deprecated).with(:supports_property, "supports { manage_home: true } on the user resource is deprecated and will be removed in Chef 13, set manage_home: true instead") + expect(Chef).to receive(:deprecated).with(:supports_property, "supports { manage_home: true } on the user resource is deprecated and will be removed in Chef 13, set manage_home true instead") @new_resource.supports( { :manage_home => true } ) end -- cgit v1.2.1