bash-preexec: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:01 -07:00
parent bf8272ae85
commit 1f7314e3bb

View file

@ -20,6 +20,6 @@ class BashPreexec < Formula
test do
# Just testing that the file is installed
assert File.exist?("#{prefix}/etc/profile.d/bash-preexec.sh")
assert_predicate testpath/"#{prefix}/etc/profile.d/bash-preexec.sh", :exist?
end
end