diff options
Diffstat (limited to 'spec/stress/win32/file_spec.rb')
-rw-r--r-- | spec/stress/win32/file_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/stress/win32/file_spec.rb b/spec/stress/win32/file_spec.rb index caeab352f7..dd1dcd305e 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" do test = lambda { Chef::ReservedNames::Win32::File.symlink?(@path) } - test.should_not leak_memory(:warmup => 50000, :iterations => 50000) + expect(test).not_to leak_memory(:warmup => 50000, :iterations => 50000) end it "should not leak handles" do test = lambda { Chef::ReservedNames::Win32::File.symlink?(@path) } - test.should_not leak_handles(:warmup => 50, :iterations => 100) + expect(test).not_to leak_handles(:warmup => 50, :iterations => 100) end end |