gengetopt: use assert_predicate instead of File.exist?
This commit is contained in:
parent
dcf3604275
commit
400c742fad
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue