gprof2dot: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:47:48 -07:00
parent da1a307f10
commit 9182d3a746

View file

@ -182,6 +182,6 @@ class Gprof2dot < Formula
[4] project1 [2] worker1
EOS
system bin/"gprof2dot", testpath/"gprof.output", "-o", testpath/"call_graph.dot"
assert File.exist?(testpath/"call_graph.dot")
assert_predicate testpath/"call_graph.dot", :exist?
end
end