webpack: use assert_predicate instead of File.exist?

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

View file

@ -32,6 +32,6 @@ class Webpack < Formula
EOS
system bin/"webpack", "index.js", "bundle.js"
assert File.exist?("bundle.js"), "bundle.js was not generated"
assert_predicate testpath/"bundle.js", :exist?, "bundle.js was not generated"
end
end