zlib: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:16 -07:00
parent 2b03944383
commit c9a125e031

View file

@ -34,6 +34,6 @@ class Zlib < Formula
touch "foo.txt"
output = "./zpipe < foo.txt > foo.txt.z"
system output
assert File.exist?("foo.txt.z")
assert_predicate testpath/"foo.txt.z", :exist?
end
end