summaryrefslogtreecommitdiff
path: root/spec/support/shared
diff options
context:
space:
mode:
authorvijaymmali1990 <vijay.mali@msystechnologies.com>2019-01-28 05:23:54 -0800
committervijaymmali1990 <vijay.mali@msystechnologies.com>2019-02-11 22:14:47 -0800
commit080c4a435af9192bcb46d7ff14840e62ab3911a4 (patch)
tree72ea1ab40090cea346965695abb9ea2de7ef2aea /spec/support/shared
parentdadedcbb748c6ef5fbad4ea0cf3ff486ddeba75e (diff)
downloadchef-080c4a435af9192bcb46d7ff14840e62ab3911a4.tar.gz
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 <vijay.mali@msystechnologies.com>
Diffstat (limited to 'spec/support/shared')
-rw-r--r--spec/support/shared/functional/securable_resource.rb2
1 files changed, 1 insertions, 1 deletions
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