git-secret: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:05 -07:00
parent 6938c5e3ed
commit 1f8ad215e2

View file

@ -43,7 +43,7 @@ class GitSecret < Formula
(testpath/".gitignore").write "shh.txt"
system "git", "secret", "add", "shh.txt"
system "git", "secret", "hide"
assert File.exist?("shh.txt.secret")
assert_predicate testpath/"shh.txt.secret", :exist?
ensure
system Formula["gnupg"].opt_bin/"gpgconf", "--kill", "gpg-agent"
end