aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/audiofile.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:12:30 -0600
committerJack Nagel2013-02-01 23:38:50 -0600
commit0718348344c67d5105ef193c5807b7423f0516b2 (patch)
tree0614f3f2ac81277850c4baadb0918bed76636dc5 /Library/Formula/audiofile.rb
parent58a90da52c922dbacc6771e7b6b1c60ccaacd950 (diff)
downloadhomebrew-0718348344c67d5105ef193c5807b7423f0516b2.tar.bz2
audiofile: use test DSL
Diffstat (limited to 'Library/Formula/audiofile.rb')
-rw-r--r--Library/Formula/audiofile.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/audiofile.rb b/Library/Formula/audiofile.rb
index 8567d98b3..5c9ae3276 100644
--- a/Library/Formula/audiofile.rb
+++ b/Library/Formula/audiofile.rb
@@ -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