trash-cli: use assert_predicate instead of File.exist?
This commit is contained in:
parent
a44b8d2674
commit
de1a6e99f5
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class TrashCli < Formula
|
|||
|
||||
test do
|
||||
touch "testfile"
|
||||
assert File.exist?("testfile")
|
||||
assert_predicate testpath/"testfile", :exist?
|
||||
system bin/"trash-put", "testfile"
|
||||
assert !File.exist?("testfile")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue