pass: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:10 -07:00
parent 8913b5047d
commit 92cd7e0efb

View file

@ -42,7 +42,7 @@ class Pass < Formula
system Formula["gnupg"].opt_bin/"gpg", "--batch", "--gen-key", "batch.gpg"
system bin/"pass", "init", "Testing"
system bin/"pass", "generate", "Email/testing@foo.bar", "15"
assert File.exist?(".password-store/Email/testing@foo.bar.gpg")
assert_predicate testpath/".password-store/Email/testing@foo.bar.gpg", :exist?
ensure
system Formula["gnupg"].opt_bin/"gpgconf", "--kill", "gpg-agent"
end