jpeg-turbo: use new test DSL
This commit is contained in:
parent
3d7a59a8ab
commit
db144fd9fe
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue