aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:12:41 -0600
committerJack Nagel2013-02-01 23:38:52 -0600
commit37748c461a63ac504d222389faf9860ade54ab08 (patch)
treeaafbcfaaf198b2813f8956e498e22c50abcb2034 /Library/Formula
parenta15f8b0114000b530508ba70048200c2592be331 (diff)
downloadhomebrew-37748c461a63ac504d222389faf9860ade54ab08.tar.bz2
jbigkit: use test DSL
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/jbigkit.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/jbigkit.rb b/Library/Formula/jbigkit.rb
index 5c323a8cf..5031a4f68 100644
--- a/Library/Formula/jbigkit.rb
+++ b/Library/Formula/jbigkit.rb
@@ -32,10 +32,8 @@ class Jbigkit < Formula
end
end
- def test
- mktemp do
- system "#{bin}/jbgtopbm #{prefix}/examples/ccitt7.jbg | #{bin}/pbmtojbg - testoutput.jbg"
- system "/usr/bin/cmp", "#{prefix}/examples/ccitt7.jbg", "testoutput.jbg"
- end
+ test do
+ system "#{bin}/jbgtopbm #{prefix}/examples/ccitt7.jbg | #{bin}/pbmtojbg - testoutput.jbg"
+ system "/usr/bin/cmp", "#{prefix}/examples/ccitt7.jbg", "testoutput.jbg"
end
end