summaryrefslogtreecommitdiff
path: root/spec/stress
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-05 13:26:53 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-05 13:26:53 -0700
commit3b10f9ca503dcbce747241281b9151d3d010f9ef (patch)
tree2e90f78a6910a4c673e19045a7f0627f1fc49382 /spec/stress
parent2a4916b7f01940d1199c35645c1b2172f5bd74b2 (diff)
downloadchef-3b10f9ca503dcbce747241281b9151d3d010f9ef.tar.gz
Style/SymbolProc
enforce pretzels. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/stress')
-rw-r--r--spec/stress/win32/security_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/stress/win32/security_spec.rb b/spec/stress/win32/security_spec.rb
index 0280398ad5..8929a2ff74 100644
--- a/spec/stress/win32/security_spec.rb
+++ b/spec/stress/win32/security_spec.rb
@@ -50,7 +50,7 @@ describe "Chef::ReservedNames::Win32::Security", :windows_only do
it "should not leak when retrieving and reading the ACE from a file", :volatile do
expect do
- sids = Chef::ReservedNames::Win32::Security::SecurableObject.new(@monkeyfoo).security_descriptor.dacl.select { |ace| ace.sid }
+ sids = Chef::ReservedNames::Win32::Security::SecurableObject.new(@monkeyfoo).security_descriptor.dacl.select(&:sid)
GC.start
end.not_to leak_memory(warmup: 50, iterations: 100)
end