libtar: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:08 -07:00
parent 90026ff96d
commit c0f9a9bbde

View file

@ -34,9 +34,9 @@ class Libtar < Formula
system "tar", "-cvf", "test.tar", "homebrew.txt"
rm "homebrew.txt"
assert !File.exist?("homebrew.txt")
assert File.exist?("test.tar")
assert_predicate testpath/"test.tar", :exist?
system bin/"libtar", "-x", "test.tar"
assert File.exist?("homebrew.txt")
assert_predicate testpath/"homebrew.txt", :exist?
end
end