cdb: use assert_predicate instead of File.exist?
This commit is contained in:
parent
2b6a08f3d0
commit
8ce92dc9d9
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Cdb < Formula
|
||||||
test do
|
test do
|
||||||
record = "+4,8:test->homebrew\n\n"
|
record = "+4,8:test->homebrew\n\n"
|
||||||
pipe_output("#{bin}/cdbmake db dbtmp", record, 0)
|
pipe_output("#{bin}/cdbmake db dbtmp", record, 0)
|
||||||
assert File.exist? "db"
|
assert_predicate testpath/"db", :exist?
|
||||||
assert_equal(record,
|
assert_equal(record,
|
||||||
pipe_output("#{bin}/cdbdump", (testpath/"db").binread, 0))
|
pipe_output("#{bin}/cdbdump", (testpath/"db").binread, 0))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue