diff options
| author | Xu Cheng | 2015-01-03 16:48:51 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-03 18:41:55 +0000 |
| commit | c5d1c4e0281f3692b5218451127bb91801243dea (patch) | |
| tree | 404c9b09c14bb8d80c03c3f39f363139002a9a54 /Library/Formula | |
| parent | c3927c6627d07d9636d002ddf2a5b92c5185a8f4 (diff) | |
| download | homebrew-c5d1c4e0281f3692b5218451127bb91801243dea.tar.bz2 | |
pyenv: add test
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pyenv.rb | 6 |
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 |
