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