unarj: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:53:27 -07:00
parent 9df7e66549
commit 8ec3464336

View file

@ -29,7 +29,7 @@ class Unarj < Formula
# Ensure that you can extract ARJ.EXE from a sample self-extracting file
resource("testfile").stage do
system "#{bin}/unarj", "e", "ARJ286.EXE"
assert File.exist? "ARJ.EXE"
assert_predicate Pathname.pwd/"ARJ.EXE", :exist?
end
end
end