jpeg-turbo: use new test DSL

This commit is contained in:
Jack Nagel 2013-01-06 21:23:12 -06:00
parent 3d7a59a8ab
commit db144fd9fe

View file

@ -23,9 +23,10 @@ class JpegTurbo < Formula
system "make install"
end
def test
mktemp do
system "#{bin}/jpegtran -crop 500x500+200+500 -transpose -perfect -outfile test.jpg /System/Library/CoreServices/DefaultDesktop.jpg"
end
test do
system "#{bin}/jpegtran", "-crop", "500x500+200+500",
"-transpose", "-perfect",
"-outfile", "test.jpg",
"/System/Library/CoreServices/DefaultDesktop.jpg"
end
end