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