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