diff options
Diffstat (limited to 'spec/stress/win32/security_spec.rb')
-rw-r--r-- | spec/stress/win32/security_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/stress/win32/security_spec.rb b/spec/stress/win32/security_spec.rb index 58cf7b3357..3c03a657b2 100644 --- a/spec/stress/win32/security_spec.rb +++ b/spec/stress/win32/security_spec.rb @@ -49,21 +49,21 @@ describe "Chef::ReservedNames::Win32::Security", :windows_only do end it "should not leak when retrieving and reading the ACE from a file", :volatile do - expect { + expect do sids = Chef::ReservedNames::Win32::Security::SecurableObject.new(@monkeyfoo).security_descriptor.dacl.select { |ace| ace.sid } GC.start - }.not_to leak_memory(:warmup => 50, :iterations => 100) + end.not_to leak_memory(:warmup => 50, :iterations => 100) end it "should not leak when creating a new ACL and setting it on a file", :volatile do securable_object = Security::SecurableObject.new(@monkeyfoo) - expect { + expect do securable_object.dacl = Chef::ReservedNames::Win32::Security::ACL.create([ Chef::ReservedNames::Win32::Security::ACE.access_allowed(Chef::ReservedNames::Win32::Security::SID.Everyone, Chef::ReservedNames::Win32::API::Security::GENERIC_READ), Chef::ReservedNames::Win32::Security::ACE.access_denied(Chef::ReservedNames::Win32::Security::SID.from_account("Users"), Chef::ReservedNames::Win32::API::Security::GENERIC_ALL), ]) GC.start - }.not_to leak_memory(:warmup => 50, :iterations => 100) + end.not_to leak_memory(:warmup => 50, :iterations => 100) end end |