tmpreaper: use assert_predicate instead of File.exist?
This commit is contained in:
parent
734f937b58
commit
5deef35cc1
1 changed files with 1 additions and 1 deletions
|
@ -27,6 +27,6 @@ class Tmpreaper < Formula
|
|||
touch "not-removed"
|
||||
system "#{sbin}/tmpreaper", "2s", "."
|
||||
assert !File.exist?("removed")
|
||||
assert File.exist?("not-removed")
|
||||
assert_predicate testpath/"not-removed", :exist?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue