diff options
| author | Xu Cheng | 2015-01-03 16:57:12 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-03 18:41:55 +0000 |
| commit | d839efd9f900a11ceba03d6dfa5acfd794403a9f (patch) | |
| tree | 96f0266fbb10cfdda4ef9019a307b0cb4700eb2b /Library/Formula | |
| parent | 90ae6f29ee6e69608640bba6dadb0bd1a9f25d11 (diff) | |
| download | homebrew-d839efd9f900a11ceba03d6dfa5acfd794403a9f.tar.bz2 | |
pyenv-which-ext: add test
Closes #35499.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pyenv-which-ext.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/pyenv-which-ext.rb b/Library/Formula/pyenv-which-ext.rb index dac4bd6cb..4dc07775d 100644 --- a/Library/Formula/pyenv-which-ext.rb +++ b/Library/Formula/pyenv-which-ext.rb @@ -1,5 +1,3 @@ -require "formula" - class PyenvWhichExt < Formula homepage "https://github.com/yyuu/pyenv-which-ext" url "https://github.com/yyuu/pyenv-which-ext/archive/v0.0.2.tar.gz" @@ -13,4 +11,8 @@ class PyenvWhichExt < Formula ENV["PREFIX"] = prefix system "./install.sh" end + + test do + shell_output("eval \"$(pyenv init -)\" && pyenv which python") + end end |
