menhir: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:39:17 -07:00
parent f898c8beac
commit bf62c72494

View file

@ -38,7 +38,7 @@ class Menhir < Formula
EOS
system "#{bin}/menhir", "--dump", "--explain", "--infer", "test.mly"
assert File.exist? "test.ml"
assert File.exist? "test.mli"
assert_predicate testpath/"test.ml", :exist?
assert_predicate testpath/"test.mli", :exist?
end
end