qt: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:11 -07:00
parent ce1b2ed3aa
commit 7c107ac4db

View file

@ -167,8 +167,8 @@ class Qt < Formula
system bin/"qmake", testpath/"hello.pro" system bin/"qmake", testpath/"hello.pro"
system "make" system "make"
assert File.exist?("hello") assert_predicate testpath/"hello", :exist?
assert File.exist?("main.o") assert_predicate testpath/"main.o", :exist?
system "./hello" system "./hello"
end end
end end