aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-01-02 19:54:57 +0800
committerMike McQuaid2015-01-02 12:17:15 +0000
commitccb01cf716e3f828ff9fc19638bacdceea8062e5 (patch)
treeb3201f21f2dc369e06d9b6a49ee9b5e1c877c030
parentb82ece70c257ca474edf91a9ceb8579a177ec4a7 (diff)
downloadhomebrew-ccb01cf716e3f828ff9fc19638bacdceea8062e5.tar.bz2
zsh-syntax-highlighting: add test
Closes #35461. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/zsh-syntax-highlighting.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/zsh-syntax-highlighting.rb b/Library/Formula/zsh-syntax-highlighting.rb
index 6bacb81e1..9fed7b0b5 100644
--- a/Library/Formula/zsh-syntax-highlighting.rb
+++ b/Library/Formula/zsh-syntax-highlighting.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class ZshSyntaxHighlighting < Formula
homepage "https://github.com/zsh-users/zsh-syntax-highlighting"
url "https://github.com/zsh-users/zsh-syntax-highlighting/archive/0.2.1.tar.gz"
@@ -27,4 +25,8 @@ class ZshSyntaxHighlighting < Formula
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=#{HOMEBREW_PREFIX}/share/zsh-syntax-highlighting/highlighters
EOS
end
+
+ test do
+ system "#{share}/zsh-syntax-highlighting/tests/test-highlighting.zsh", "main"
+ end
end