fwup: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:04 -07:00
parent 18c815e026
commit a33ad788f4

View file

@ -23,7 +23,7 @@ class Fwup < Formula
test do
system bin/"fwup", "-g"
assert File.exist?("fwup-key.priv"), "Failed to create fwup-key.priv!"
assert File.exist?("fwup-key.pub"), "Failed to create fwup-key.pub!"
assert_predicate testpath/"fwup-key.priv", :exist?, "Failed to create fwup-key.priv!"
assert_predicate testpath/"fwup-key.pub", :exist?, "Failed to create fwup-key.pub!"
end
end