aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-03-25 20:35:54 +0800
committerXu Cheng2015-03-25 22:13:33 +0800
commit4e1b21aa139a69a8cf1d56532da658563bd66a48 (patch)
tree6d8b8f1e1ac57c7444fd2c38f6dd3b34b510b87f /Library/Formula
parent5ab87c60e2d4787dd6a3ef2cf2cb9538c340822d (diff)
downloadhomebrew-4e1b21aa139a69a8cf1d56532da658563bd66a48.tar.bz2
zsh-completion: add test
Closes #38055. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/zsh-completions.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/zsh-completions.rb b/Library/Formula/zsh-completions.rb
index d61aa71e2..52ae844d2 100644
--- a/Library/Formula/zsh-completions.rb
+++ b/Library/Formula/zsh-completions.rb
@@ -1,7 +1,7 @@
class ZshCompletions < Formula
homepage "https://github.com/zsh-users/zsh-completions"
url "https://github.com/zsh-users/zsh-completions/archive/0.12.0.tar.gz"
- sha1 "1c39734328b28c619a55fa52fa42e81c314aeadf"
+ sha256 "770d92749b11b22192595b207208508f8bfa319d5d03210a71bc44c8b9cfa0d5"
head "https://github.com/zsh-users/zsh-completions.git"
@@ -25,4 +25,13 @@ class ZshCompletions < Formula
chmod go-w /usr/local/share
EOS
end
+
+ test do
+ (testpath/".zshrc").write <<-EOS.undent
+ fpath=(#{HOMEBREW_PREFIX}/share/zsh-completions $fpath)
+ autoload -U compinit
+ compinit
+ EOS
+ system "/bin/zsh", "--login", "-i", "-c", "which _ack"
+ end
end