aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-02-23 08:42:34 +0000
committerMike McQuaid2013-02-23 08:42:45 +0000
commitb1241bb3a1971bb0cdba2e0f1fef6ad046b5f109 (patch)
tree2b311b8f7b2d1984416ff2fd3081cb266b295505 /Library
parent72afade1eedc058a3c9da25bac9d5bdc19823abb (diff)
downloadbrew-b1241bb3a1971bb0cdba2e0f1fef6ad046b5f109.tar.bz2
brew create: use test DSL
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/create.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index 9f215a0f2..26fd36b40 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -146,7 +146,9 @@ class FormulaCreator
system "make install" # if this fails, try separate make/make install steps
end
- def test
+ test do
+ # `test do` will create, run in and delete a temporary directory.
+ #
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test #{name}`.