wimlib: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:16 -07:00
parent ff2790df81
commit 1298a9e425

View file

@ -40,7 +40,7 @@ class Wimlib < Formula
# capture an image
ENV.append "WIMLIB_IMAGEX_USE_UTF8", "1"
system "#{bin}/wimcapture", "foo", "bar.wim"
assert File.exist?("bar.wim")
assert_predicate testpath/"bar.wim", :exist?
# get info on the image
system "#{bin}/wiminfo", "bar.wim"