gopass: use assert_predicate instead of File.exist?
This commit is contained in:
parent
4f8ff856cd
commit
619fabf95c
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue