diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-09 14:00:14 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-16 18:41:25 -0700 |
commit | 854827b839510fd7921829452756c9aa81c45c84 (patch) | |
tree | a068622d63b0570f62e1885e7bac2f04e3ab8eae /spec/support | |
parent | 86b7ae916e37a17e9f764bcc6699b7cd38e6d732 (diff) | |
download | chef-854827b839510fd7921829452756c9aa81c45c84.tar.gz |
fixing Style/ConstantName cop
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared/functional/securable_resource.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb index 17b78dda9d..95f4f4bd49 100644 --- a/spec/support/shared/functional/securable_resource.rb +++ b/spec/support/shared/functional/securable_resource.rb @@ -81,7 +81,7 @@ shared_context "use Windows permissions", :windows_only do SID ||= Chef::ReservedNames::Win32::Security::SID ACE ||= Chef::ReservedNames::Win32::Security::ACE ACL ||= Chef::ReservedNames::Win32::Security::ACL - SecurableObject ||= Chef::ReservedNames::Win32::Security::SecurableObject + SecurableObject ||= Chef::ReservedNames::Win32::Security::SecurableObject # rubocop:disable Style/ConstantName end def get_security_descriptor(path) @@ -139,8 +139,8 @@ shared_context "use Windows permissions", :windows_only do RSpec::Matchers.define :have_expected_properties do |mask, type, flags| match do |ace| ace.mask == mask && - ace.type == type && - ace.flags == flags + ace.type == type && + ace.flags == flags end end @@ -439,7 +439,7 @@ shared_examples_for "a securable resource without existing target" do context "with a mode attribute" do if windows? - Security ||= Chef::ReservedNames::Win32::API::Security + Security ||= Chef::ReservedNames::Win32::API::Security # rubocop:disable Style/ConstantName end it "respects mode in string form as an octal number" do |