typescript: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:15 -07:00
parent 55319a7733
commit b032851d9e

View file

@ -33,6 +33,6 @@ class Typescript < Formula
EOS
system bin/"tsc", "test.ts"
assert File.exist?("test.js"), "test.js was not generated"
assert_predicate testpath/"test.js", :exist?, "test.js was not generated"
end
end