ttf2eot: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:15 -07:00
parent cf5e50c5c3
commit 55319a7733

View file

@ -21,6 +21,6 @@ class Ttf2eot < Formula
test do
cp "/Library/Fonts/Arial.ttf", testpath
system("#{bin}/ttf2eot < Arial.ttf > Arial.eot")
assert File.exist?("Arial.eot")
assert_predicate testpath/"Arial.eot", :exist?
end
end