diff options
Diffstat (limited to 'Library')
| -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 |
