rdfind: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:13 -07:00
parent 2c7dcb9796
commit 0e12cd4d8a

View file

@ -28,7 +28,7 @@ class Rdfind < Formula
touch "folder/file1"
touch "folder/file2"
system "#{bin}/rdfind", "-deleteduplicates", "true", "-ignoreempty", "false", "folder"
assert File.exist?("folder/file1")
assert_predicate testpath/"folder/file1", :exist?
assert !File.exist?("folder/file2")
end
end