aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 16:57:12 +0800
committerMike McQuaid2015-01-03 18:41:55 +0000
commitd839efd9f900a11ceba03d6dfa5acfd794403a9f (patch)
tree96f0266fbb10cfdda4ef9019a307b0cb4700eb2b /Library/Formula
parent90ae6f29ee6e69608640bba6dadb0bd1a9f25d11 (diff)
downloadhomebrew-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.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