From c2b89dc0e3e103aca8dcf239b8c12a77c0cd566b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 1 Feb 2013 23:12:57 -0600 Subject: webp: use test DSL --- Library/Formula/webp.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3