treefrog: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:15 -07:00
parent de1a6e99f5
commit cf5e50c5c3

View file

@ -44,11 +44,11 @@ class Treefrog < Formula
test do
system bin/"tspawn", "new", "hello"
assert File.exist?("hello")
assert_predicate testpath/"hello", :exist?
cd "hello" do
assert File.exist?("hello.pro")
assert_predicate testpath/"hello.pro", :exist?
system HOMEBREW_PREFIX/"opt/qt/bin/qmake"
assert File.exist?("Makefile")
assert_predicate testpath/"Makefile", :exist?
system "make"
system bin/"treefrog", "-v"
end