aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-01-06 21:22:57 -0600
committerJack Nagel2013-01-06 21:22:57 -0600
commit9296f04b451508d01d485782bad69c132cf284a0 (patch)
tree4b08f008272850b1edff60b874eefe4a49a8f467 /Library/Formula
parent28d1220d4a68a3a5495dd48fcf1b92df93b07b36 (diff)
downloadhomebrew-9296f04b451508d01d485782bad69c132cf284a0.tar.bz2
gd: use new test DSL
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gd.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/gd.rb b/Library/Formula/gd.rb
index e9ecc154a..c7e34d79c 100644
--- a/Library/Formula/gd.rb
+++ b/Library/Formula/gd.rb
@@ -49,12 +49,10 @@ Cflags: -I${includedir}
EOF
end
- def test
- mktemp do
- system "#{bin}/pngtogd", \
- "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
- "gd_test.gd"
- system "#{bin}/gdtopng", "gd_test.gd", "gd_test.png"
- end
+ test do
+ system "#{bin}/pngtogd", \
+ "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
+ "gd_test.gd"
+ system "#{bin}/gdtopng", "gd_test.gd", "gd_test.png"
end
end