Fix a benchmark to avoid leaving a garbage file
This commit is contained in:
parent
2a57e6e6ed
commit
76f0eec20f
@ -12,6 +12,9 @@ prelude: |
|
||||
relative_dir = 'b/c'
|
||||
absolute_dir = File.join(pwd, relative_dir)
|
||||
file_dir = 'c'
|
||||
teardown: |
|
||||
require 'fileutils'
|
||||
FileUtils.rm_rf('b')
|
||||
benchmark:
|
||||
relative_nil: "f.realpath(relative, nil)"
|
||||
absolute_nil: "f.realpath(absolute, nil)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user