From 525adf04bc83165facb91e2b11305a7f4788d8da Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 6 Oct 2017 03:12:36 -0700 Subject: [PATCH] yamcha: use assert_predicate instead of File.exist? --- Formula/yamcha.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/yamcha.rb b/Formula/yamcha.rb index d46d377e25..7a84e8eb1c 100644 --- a/Formula/yamcha.rb +++ b/Formula/yamcha.rb @@ -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