diff options
| author | Baptiste Fontaine | 2015-02-18 13:06:02 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-18 13:51:06 +0000 |
| commit | 054d36d340e0845a472b22e1259ffe3bd20c4a91 (patch) | |
| tree | 01f0fa691a45ad993ca03c154767942cfd981620 | |
| parent | 513be98e2b35a1be35437578a56913b38271b84a (diff) | |
| download | homebrew-054d36d340e0845a472b22e1259ffe3bd20c4a91.tar.bz2 | |
git-extras: test added
Closes #36931.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/git-extras.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/git-extras.rb b/Library/Formula/git-extras.rb index 0cb521397..715ffb045 100644 --- a/Library/Formula/git-extras.rb +++ b/Library/Formula/git-extras.rb @@ -1,5 +1,3 @@ -require "formula" - class GitExtras < Formula homepage "https://github.com/tj/git-extras" url "https://github.com/tj/git-extras/archive/2.2.0.tar.gz" @@ -15,7 +13,13 @@ class GitExtras < Formula end def install - inreplace "Makefile", %r|\$\(DESTDIR\)(?=/etc/bash_completion\.d)|, "$(DESTDIR)$(PREFIX)" + inreplace "Makefile", %r{\$\(DESTDIR\)(?=/etc/bash_completion\.d)}, "$(DESTDIR)$(PREFIX)" system "make", "PREFIX=#{prefix}", "install" end + + test do + cd HOMEBREW_PREFIX do + system "#{bin}/git-root" + end + end end |
