libressl: use assert_predicate

This commit is contained in:
ilovezfs 2017-10-09 02:41:56 -07:00
parent 4a5ea3d596
commit 24d5edfe47

View file

@ -82,7 +82,7 @@ class Libressl < Formula
test do
# Make sure the necessary .cnf file exists, otherwise LibreSSL gets moody.
assert (HOMEBREW_PREFIX/"etc/libressl/openssl.cnf").exist?,
assert_predicate HOMEBREW_PREFIX/"etc/libressl/openssl.cnf", :exist?,
"LibreSSL requires the .cnf file for some functionality"
# Check LibreSSL itself functions as expected.