trash-cli: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:14 -07:00
parent a44b8d2674
commit de1a6e99f5

View file

@ -24,7 +24,7 @@ class TrashCli < Formula
test do
touch "testfile"
assert File.exist?("testfile")
assert_predicate testpath/"testfile", :exist?
system bin/"trash-put", "testfile"
assert !File.exist?("testfile")
end