Skip to content

Commit

Permalink
webpack: use assert_predicate instead of File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovezfs committed Oct 6, 2017
1 parent ccae44d commit ff2790d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/webpack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def install
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

0 comments on commit ff2790d

Please sign in to comment.