From cf05bf2678a585f052ba60f813b0e7463b305533 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 7 Jul 2011 11:20:06 -0700 Subject: [PATCH] CouchDB: add test instructions --- Formula/couchdb.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Formula/couchdb.rb b/Formula/couchdb.rb index cf91670a2af..8cc4430c989 100644 --- a/Formula/couchdb.rb +++ b/Formula/couchdb.rb @@ -28,6 +28,16 @@ class Couchdb < Formula (var+'log/couchdb').mkpath end + def test + puts <<-EOS.undent + To test CouchDB, start `couchdb` in a terminal and then: + curl http://127.0.0.1:5984/ + + The reply should look like: + {"couchdb":"Welcome","version":"1.1.0"} + EOS + end + def caveats; <<-EOS.undent If this is your first install, automatically load on login with: mkdir -p ~/Library/LaunchAgents