From 36596de68c34a5805a74cbc08e86282ef53f1c73 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 25 Aug 2011 00:52:12 +0100 Subject: [PATCH] Force contributors to define a test by adding it to the create template A little cheeky but it should help us to maintain higher quality. --- Library/Homebrew/cmd/create.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb index dc39fc381b..c7fe22fc77 100644 --- a/Library/Homebrew/cmd/create.rb +++ b/Library/Homebrew/cmd/create.rb @@ -122,6 +122,11 @@ class FormulaCreator <% end %> system "make install" end + + def test + # this will fail we won't accept that, make it test the program works! + system "/usr/bin/false" + end end EOS end