argyll-cms: use assert_predicate

This commit is contained in:
ilovezfs 2017-10-09 08:47:24 -07:00
parent c5b0618d6a
commit 5ea77e5fed

View file

@ -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