Skip to content

Commit

Permalink
babel: 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 c2bf174 commit 5a013bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/babel.rb
Expand Up @@ -31,6 +31,6 @@ def install
EOS

system bin/"babel", "script.js", "--out-file", "script-compiled.js"
assert File.exist?("script-compiled.js"), "script-compiled.js was not generated"
assert_predicate testpath/"script-compiled.js", :exist?, "script-compiled.js was not generated"
end
end

0 comments on commit 5a013bb

Please sign in to comment.