cdb: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:39:16 -07:00
parent 2b6a08f3d0
commit 8ce92dc9d9

View file

@ -22,7 +22,7 @@ class Cdb < Formula
test do
record = "+4,8:test->homebrew\n\n"
pipe_output("#{bin}/cdbmake db dbtmp", record, 0)
assert File.exist? "db"
assert_predicate testpath/"db", :exist?
assert_equal(record,
pipe_output("#{bin}/cdbdump", (testpath/"db").binread, 0))
end