gengetopt: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:39:16 -07:00
parent dcf3604275
commit 400c742fad

View file

@ -33,8 +33,8 @@ class Gengetopt < Formula
EOS
pipe_output("#{bin}/gengetopt --file-name=test", ggo, 0)
assert File.exist? "test.h"
assert File.exist? "test.c"
assert_predicate testpath/"test.h", :exist?
assert_predicate testpath/"test.c", :exist?
assert_match(/verbose_given/, File.read("test.h"))
end
end