gnatsd: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:12:35 -07:00
parent 2269ba3658
commit 3cb5fc5cad

View file

@ -52,7 +52,7 @@ class Gnatsd < Formula
begin
assert_match version.to_s, shell_output("curl localhost:8085")
assert File.exist?(testpath/"log")
assert_predicate testpath/"log", :exist?
ensure
Process.kill "SIGINT", pid
Process.wait pid