aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pyenv-virtualenv.rb
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 16:51:19 +0800
committerMike McQuaid2015-01-03 18:41:55 +0000
commit2fd017e9e04a35836a711ad0361e70c6775dd878 (patch)
treeb9676c8f20310cce401c54eac71032d9df8945ed /Library/Formula/pyenv-virtualenv.rb
parentc5d1c4e0281f3692b5218451127bb91801243dea (diff)
downloadhomebrew-2fd017e9e04a35836a711ad0361e70c6775dd878.tar.bz2
pyenv-virtualenv: add test
Diffstat (limited to 'Library/Formula/pyenv-virtualenv.rb')
-rw-r--r--Library/Formula/pyenv-virtualenv.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/pyenv-virtualenv.rb b/Library/Formula/pyenv-virtualenv.rb
index afe3d9d3c..dd23cc4a2 100644
--- a/Library/Formula/pyenv-virtualenv.rb
+++ b/Library/Formula/pyenv-virtualenv.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class PyenvVirtualenv < Formula
homepage "https://github.com/yyuu/pyenv-virtualenv"
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20141106.tar.gz"
@@ -19,4 +17,8 @@ class PyenvVirtualenv < Formula
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
EOS
end
+
+ test do
+ shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvs")
+ end
end