diff --git a/Formula/babel.rb b/Formula/babel.rb index d1d6f96fa3789..abe6809cab7cd 100644 --- a/Formula/babel.rb +++ b/Formula/babel.rb @@ -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