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