trace2html: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:14 -07:00
parent cd99bfa657
commit a44b8d2674

View file

@ -17,6 +17,6 @@ class Trace2html < Formula
test do
touch "test.json"
system "#{bin}/trace2html", "test.json"
assert File.exist?("test.html")
assert_predicate testpath/"test.html", :exist?
end
end