safe-rm: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:53:26 -07:00
parent 0ec46150a8
commit 4ac7d73391

View file

@ -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