From d839efd9f900a11ceba03d6dfa5acfd794403a9f Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 3 Jan 2015 16:57:12 +0800 Subject: pyenv-which-ext: add test Closes #35499. Signed-off-by: Mike McQuaid --- Library/Formula/pyenv-which-ext.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3