Skip to content

Commit

Permalink
nats-streaming-server: use assert_predicate instead of File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovezfs committed Oct 6, 2017
1 parent affdd3e commit 89fcac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/nats-streaming-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def plist; <<-EOS.undent

begin
assert_match "INFO", shell_output("curl localhost:8085")
assert File.exist?(testpath/"log")
assert_predicate testpath/"log", :exist?
assert_match version.to_s, File.read(testpath/"log")
ensure
Process.kill "SIGINT", pid
Expand Down

0 comments on commit 89fcac0

Please sign in to comment.