lua: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:05:41 -07:00
parent aa4406e154
commit 578b92f1b1

View file

@ -147,7 +147,7 @@ class Lua < Formula
if File.exist?(bin/"luarocks-5.2")
mkdir testpath/"luarocks"
system bin/"luarocks-5.2", "install", "moonscript", "--tree=#{testpath}/luarocks"
assert File.exist? testpath/"luarocks/bin/moon"
assert_predicate testpath/"luarocks/bin/moon", :exist?
end
end
end