summaryrefslogtreecommitdiff
path: root/spec/stress/win32
diff options
context:
space:
mode:
Diffstat (limited to 'spec/stress/win32')
-rw-r--r--spec/stress/win32/file_spec.rb4
-rw-r--r--spec/stress/win32/security_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/stress/win32/file_spec.rb b/spec/stress/win32/file_spec.rb
index f1c81eb9c6..49dd8694f5 100644
--- a/spec/stress/win32/file_spec.rb
+++ b/spec/stress/win32/file_spec.rb
@@ -26,12 +26,12 @@ describe "Chef::ReservedNames::Win32::File", :windows_only do
it "should not leak significant memory", :volatile do
test = lambda { Chef::ReservedNames::Win32::File.symlink?(@path) }
- expect(test).not_to leak_memory(:warmup => 50000, :iterations => 50000)
+ expect(test).not_to leak_memory(warmup: 50000, iterations: 50000)
end
it "should not leak handles", :volatile do
test = lambda { Chef::ReservedNames::Win32::File.symlink?(@path) }
- expect(test).not_to leak_handles(:warmup => 50, :iterations => 100)
+ expect(test).not_to leak_handles(warmup: 50, iterations: 100)
end
end
diff --git a/spec/stress/win32/security_spec.rb b/spec/stress/win32/security_spec.rb
index 3c03a657b2..0280398ad5 100644
--- a/spec/stress/win32/security_spec.rb
+++ b/spec/stress/win32/security_spec.rb
@@ -52,7 +52,7 @@ describe "Chef::ReservedNames::Win32::Security", :windows_only do
expect do
sids = Chef::ReservedNames::Win32::Security::SecurableObject.new(@monkeyfoo).security_descriptor.dacl.select { |ace| ace.sid }
GC.start
- end.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
@@ -63,7 +63,7 @@ describe "Chef::ReservedNames::Win32::Security", :windows_only do
Chef::ReservedNames::Win32::Security::ACE.access_denied(Chef::ReservedNames::Win32::Security::SID.from_account("Users"), Chef::ReservedNames::Win32::API::Security::GENERIC_ALL),
])
GC.start
- end.not_to leak_memory(:warmup => 50, :iterations => 100)
+ end.not_to leak_memory(warmup: 50, iterations: 100)
end
end