safe-rm: use assert_predicate instead of File.exist?
This commit is contained in:
parent
0ec46150a8
commit
4ac7d73391
1 changed files with 1 additions and 1 deletions
|
@ -21,6 +21,6 @@ class SafeRm < Formula
|
|||
system "#{bin}/safe-rm", foo
|
||||
assert !File.exist?(foo)
|
||||
shell_output("#{bin}/safe-rm #{bar} 2>&1", 64)
|
||||
assert File.exist?(bar)
|
||||
assert_predicate bar, :exist?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue