gopass: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:06 -07:00
parent 4f8ff856cd
commit 619fabf95c

View file

@ -48,7 +48,7 @@ class Gopass < Formula
system bin/"gopass", "init", "--nogit", "testing@foo.bar"
system bin/"gopass", "generate", "Email/other@foo.bar", "15"
assert File.exist?(".password-store/Email/other@foo.bar.gpg")
assert_predicate testpath/".password-store/Email/other@foo.bar.gpg", :exist?
ensure
system Formula["gnupg"].opt_bin/"gpgconf", "--kill", "gpg-agent"
system Formula["gnupg"].opt_bin/"gpgconf", "--homedir", "keyrings/live",