rename: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:13 -07:00
parent 0e12cd4d8a
commit 0cd523b6b3

View file

@ -26,6 +26,6 @@ class Rename < Formula
touch "foo.doc"
system "#{bin}/rename -s .doc .txt *.d*"
assert !File.exist?("foo.doc")
assert File.exist?("foo.txt")
assert_predicate testpath/"foo.txt", :exist?
end
end