diff options
author | Claire McQuin <mcquin@users.noreply.github.com> | 2014-11-07 14:48:12 -0800 |
---|---|---|
committer | Claire McQuin <mcquin@users.noreply.github.com> | 2014-11-07 14:48:12 -0800 |
commit | 1888a8a9c5cbc1bdcfb1d9aa919a911c72cbbff4 (patch) | |
tree | 2e3a93f98865ad7091fdd24319b1aba6d03dcc70 /spec/stress/win32/security_spec.rb | |
parent | bf6340a113dd0c37e2084c70007d201742f11e9d (diff) | |
parent | 51430f7f2c25773f5ad3c05015eed95d315f798d (diff) | |
download | chef-1888a8a9c5cbc1bdcfb1d9aa919a911c72cbbff4.tar.gz |
Merge pull request #2324 from opscode/mcquin/rspec-3
Update to RSpec 3
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 e506b71be1..cb520e515e 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 - lambda { + expect { sids = Chef::ReservedNames::Win32::Security::SecurableObject.new(@monkeyfoo).security_descriptor.dacl.select { |ace| ace.sid } GC.start - }.should_not leak_memory(:warmup => 50, :iterations => 100) + }.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) - lambda { + expect { 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 - }.should_not leak_memory(:warmup => 50, :iterations => 100) + }.not_to leak_memory(:warmup => 50, :iterations => 100) end end |