vala: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:47:50 -07:00
parent df5fcf49b7
commit cf951c7715

View file

@ -42,7 +42,7 @@ class Vala < Formula
path.to_s,
]
system "#{bin}/valac", *valac_args
assert File.exist?(testpath/"hello.c")
assert_predicate testpath/"hello.c", :exist?
assert_equal test_string, shell_output("#{testpath}/hello")
end