audiofile: use test DSL

This commit is contained in:
Jack Nagel 2013-02-01 23:12:30 -06:00
parent 85c659794a
commit 8818e4d3f7

View file

@ -19,7 +19,7 @@ class Audiofile < Formula
system "make install"
end
def test
test do
inn = '/System/Library/Sounds/Glass.aiff'
out = 'Glass.wav'
conv_bin = "#{bin}/sfconvert"
@ -39,9 +39,7 @@ class Audiofile < Formula
return
end
mktemp do
system conv_bin, inn, out, 'format', 'wave'
system info_bin, '--short', '--reporterror', out
end
system conv_bin, inn, out, 'format', 'wave'
system info_bin, '--short', '--reporterror', out
end
end