From 5ea77e5feddbde314a318ccf3da32dd72a272a75 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 9 Oct 2017 08:47:24 -0700 Subject: [PATCH] argyll-cms: use assert_predicate --- Formula/argyll-cms.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Formula/argyll-cms.rb b/Formula/argyll-cms.rb index 789f513edc..76fa4ff54e 100644 --- a/Formula/argyll-cms.rb +++ b/Formula/argyll-cms.rb @@ -36,7 +36,9 @@ class ArgyllCms < Formula test do system bin/"targen", "-d", "0", "test.ti1" system bin/"printtarg", testpath/"test.ti1" - %w[test.ti1.ps test.ti1.ti1 test.ti1.ti2].each { |f| File.exist? f } + %w[test.ti1.ps test.ti1.ti1 test.ti1.ti2].each do |f| + assert_predicate testpath/f, :exist? + end assert_match "Calibrate a Display", shell_output("#{bin}/dispcal 2>&1", 1) end end