From 6a5f50657d723334942e525cff39ffa204a7f008 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Thu, 29 Sep 2016 10:21:57 -0400 Subject: [PATCH] exiftool: improve test --- Formula/exiftool.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Formula/exiftool.rb b/Formula/exiftool.rb index f0e0a7e731..c19acf7657 100644 --- a/Formula/exiftool.rb +++ b/Formula/exiftool.rb @@ -29,6 +29,8 @@ class Exiftool < Formula end test do - system bin/"exiftool" + test_image = test_fixtures("test.jpg") + assert_match %r{MIME Type\s+: image/jpeg}, + shell_output("#{bin}/exiftool #{test_image}") end end