aria2: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:01 -07:00
parent facedda225
commit 40d1c2cae3

View file

@ -41,6 +41,6 @@ class Aria2 < Formula
test do
system "#{bin}/aria2c", "https://brew.sh/"
assert File.exist?("index.html"), "Failed to create index.html!"
assert_predicate testpath/"index.html", :exist?, "Failed to create index.html!"
end
end