yamcha: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:12:36 -07:00
parent 89fcac0531
commit 525adf04bc

View file

@ -56,7 +56,7 @@ class Yamcha < Formula
"CORPUS=train.data", "MODEL=case_study", "train"
%w[log model se svmdata txtmodel.gz].each do |ext|
assert File.exist? testpath/"case_study.#{ext}"
assert_predicate testpath/"case_study.#{ext}", :exist?
end
end
end