tmpreaper: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:14 -07:00
parent 734f937b58
commit 5deef35cc1

View file

@ -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