From 59fab56afdf6129c37ff30eb842bf7bff41348e0 Mon Sep 17 00:00:00 2001
From: EricFromCanada <eric@lassosoft.com>
Date: Sat, 25 Mar 2017 22:36:09 -0400
Subject: [PATCH] docs: update sample formula

Also works around bug in Jekyll where a URL with a "#" will cause links
in the same paragraph to not have their extensions replaced by using
"&num;" instead.
---
 docs/Formula-Cookbook.md | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md
index 84a472e0d3..fc0a5d1f6a 100644
--- a/docs/Formula-Cookbook.md
+++ b/docs/Formula-Cookbook.md
@@ -59,10 +59,18 @@ class Foo < Formula
   # depends_on "cmake" => :build
 
   def install
-    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+    # ENV.deparallelize
+    system "./configure", "--disable-debug",
+                          "--disable-dependency-tracking",
+                          "--disable-silent-rules",
+                          "--prefix=#{prefix}"
     # system "cmake", ".", *std_cmake_args
     system "make", "install"
   end
+
+  test do
+    system "false"
+  end
 end
 ```
 
@@ -259,7 +267,7 @@ Check the top of the e.g. `./configure` output. Some configure scripts do not re
 
 ### Add a test to the formula
 
-Please add a [`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#test-class_method) block to the formula. This will be run by `brew test foo` and the [Brew Test Bot](Brew-Test-Bot.md).
+Add a valid test to the [`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula&num;test-class_method) block of the formula. This will be run by `brew test foo` and the [Brew Test Bot](Brew-Test-Bot.md).
 
 The
 [`test do`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#test-class_method)
-- 
GitLab