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