lesspipe: use assert_predicate instead of File.exist?
This commit is contained in:
parent
d02c5e4d11
commit
d58186a21b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue