aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-02-17 23:45:05 +0800
committerXu Cheng2015-02-17 23:55:30 +0800
commit1b088ec74c1f220e76daeea94c36fa9e9a78bba5 (patch)
tree66f55222f0df7390de37428b14844ae10689c4ff /Library/Formula
parentfef335de5f02caee1ae5abfe8c1e9ae1d8853c3d (diff)
downloadhomebrew-1b088ec74c1f220e76daeea94c36fa9e9a78bba5.tar.bz2
direnv: add test
Closes #36900. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/direnv.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/direnv.rb b/Library/Formula/direnv.rb
index 9b910df50..045f11945 100644
--- a/Library/Formula/direnv.rb
+++ b/Library/Formula/direnv.rb
@@ -1,11 +1,9 @@
-require 'formula'
-
class Direnv < Formula
- homepage 'http://www.direnv.net'
- url 'https://github.com/zimbatm/direnv/archive/v2.6.0.tar.gz'
- sha1 'ebfa8c087aadeffe2c8f84128082d670d22ea541'
+ homepage "http://www.direnv.net"
+ url "https://github.com/zimbatm/direnv/archive/v2.6.0.tar.gz"
+ sha1 "ebfa8c087aadeffe2c8f84128082d670d22ea541"
- head 'https://github.com/zimbatm/direnv.git'
+ head "https://github.com/zimbatm/direnv.git"
bottle do
sha1 "0cee43bd9df0e2f376e6edfaaebb6ca537df0692" => :yosemite
@@ -22,4 +20,8 @@ class Direnv < Formula
def caveats
"Finish setup by following: https://github.com/zimbatm/direnv#setup"
end
+
+ test do
+ system bin/"direnv", "status"
+ end
end