From 080c4a435af9192bcb46d7ff14840e62ab3911a4 Mon Sep 17 00:00:00 2001 From: vijaymmali1990 Date: Mon, 28 Jan 2019 05:23:54 -0800 Subject: Minor fixes as per the review comments - Using proper verbiage for constant WRITE - Source https://docs.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.filesystemrights?view=netframework-4.7.2#fields - Straight away using constants instead of it's fully qualified path - Minor DRY up and Fixes - Fixed functional test cases - Ensured chefstyle Signed-off-by: vijaymmali1990 --- spec/support/shared/functional/securable_resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support') diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb index 2abae030c2..d9a2110543 100644 --- a/spec/support/shared/functional/securable_resource.rb +++ b/spec/support/shared/functional/securable_resource.rb @@ -118,7 +118,7 @@ shared_context "use Windows permissions", :windows_only do let(:expected_write_perms) do { generic: Chef::ReservedNames::Win32::API::Security::GENERIC_WRITE, - specific: Chef::ReservedNames::Win32::API::Security::FILE_GENERIC_WRITE, + specific: Chef::ReservedNames::Win32::API::Security::WRITE, } end -- cgit v1.2.1