pxz: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:39:18 -07:00
parent 8f94e79bfb
commit 186c387144

View file

@ -39,7 +39,7 @@ class Pxz < Formula
test do
(testpath/"test").write "foo bar"
system "#{bin}/pxz", "test"
assert File.exist? "test.xz"
assert_predicate testpath/"test.xz", :exist?
end
end