httptunnel: use assert_predicate instead of File.exist?
This commit is contained in:
parent
01f1b4284f
commit
b8f5bdfaa8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue