lesspipe: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:07 -07:00
parent d02c5e4d11
commit d58186a21b

View file

@ -31,7 +31,7 @@ class Lesspipe < Formula
touch "file2.txt"
system "tar", "-cvzf", "homebrew.tar.gz", "file1.txt", "file2.txt"
assert File.exist?("homebrew.tar.gz")
assert_predicate testpath/"homebrew.tar.gz", :exist?
assert_match /file2.txt/, shell_output("tar tvzf homebrew.tar.gz | #{bin}/tarcolor")
end