From 92cd7e0efb929d1142c313ac2580983e91ed792d Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 6 Oct 2017 02:08:10 -0700 Subject: [PATCH] pass: use assert_predicate instead of File.exist? --- Formula/pass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/pass.rb b/Formula/pass.rb index 689db5059e..15538cfe93 100644 --- a/Formula/pass.rb +++ b/Formula/pass.rb @@ -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