aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pyenv-which-ext.rb6
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