aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/webp.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:12:57 -0600
committerJack Nagel2013-02-01 23:38:55 -0600
commitc2b89dc0e3e103aca8dcf239b8c12a77c0cd566b (patch)
tree1a0015dd5cd6c7ca99766eb3ed4fba43d868923b /Library/Formula/webp.rb
parent45db92eb50886a814f2b5909dc1d4e98b2c4c2d4 (diff)
downloadhomebrew-c2b89dc0e3e103aca8dcf239b8c12a77c0cd566b.tar.bz2
webp: use test DSL
Diffstat (limited to 'Library/Formula/webp.rb')
-rw-r--r--Library/Formula/webp.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/webp.rb b/Library/Formula/webp.rb
index 2a3ebb5b7..723f83ca0 100644
--- a/Library/Formula/webp.rb
+++ b/Library/Formula/webp.rb
@@ -14,12 +14,10 @@ class Webp < Formula
system "make install"
end
- def test
- mktemp do
- system "#{bin}/cwebp", \
- "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
- "-o", "webp_test.png"
- system "#{bin}/dwebp", "webp_test.png", "-o", "webp_test.webp"
- end
+ test do
+ system "#{bin}/cwebp", \
+ "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
+ "-o", "webp_test.png"
+ system "#{bin}/dwebp", "webp_test.png", "-o", "webp_test.webp"
end
end