aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 16:48:51 +0800
committerMike McQuaid2015-01-03 18:41:55 +0000
commitc5d1c4e0281f3692b5218451127bb91801243dea (patch)
tree404c9b09c14bb8d80c03c3f39f363139002a9a54 /Library/Formula
parentc3927c6627d07d9636d002ddf2a5b92c5185a8f4 (diff)
downloadhomebrew-c5d1c4e0281f3692b5218451127bb91801243dea.tar.bz2
pyenv: add test
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyenv.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/pyenv.rb b/Library/Formula/pyenv.rb
index f54bf5ba3..d7b648994 100644
--- a/Library/Formula/pyenv.rb
+++ b/Library/Formula/pyenv.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class Pyenv < Formula
homepage "https://github.com/yyuu/pyenv"
head "https://github.com/yyuu/pyenv.git"
@@ -36,4 +34,8 @@ class Pyenv < Formula
export PYENV_ROOT=#{opt_prefix}
EOS
end
+
+ test do
+ shell_output("eval \"$(#{bin}/pyenv init -)\" && pyenv versions")
+ end
end