aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:12:55 -0600
committerJack Nagel2013-02-01 23:38:55 -0600
commitbc8be64f69665cd21720777c9e57f9e79c993f19 (patch)
tree2ed91e65bbfb0c46aecd5f1d70cb26e35d42ea54 /Library/Formula
parenta98c711d1dca0f55ffb090779eb8ca4f1a39c41a (diff)
downloadhomebrew-bc8be64f69665cd21720777c9e57f9e79c993f19.tar.bz2
swftools: use test DSL
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/swftools.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/swftools.rb b/Library/Formula/swftools.rb
index 6bb024b72..47c9f3884 100644
--- a/Library/Formula/swftools.rb
+++ b/Library/Formula/swftools.rb
@@ -33,11 +33,9 @@ class Swftools < Formula
system "make install"
end
- def test
- mktemp do
- system "#{bin}/png2swf", "swftools_test.swf", \
- "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png"
- end
+ test do
+ system "#{bin}/png2swf", "swftools_test.swf", \
+ "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png"
end
end