httptunnel: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:26:59 -07:00
parent 01f1b4284f
commit b8f5bdfaa8

View file

@ -26,7 +26,7 @@ class Httptunnel < Formula
sleep 2
begin
assert File.exist?("#{testpath}/pid")
assert_predicate testpath/"pid", :exist?
ensure
Process.kill "SIGINT", pid
Process.wait pid