diff options
| author | Xu Cheng | 2015-02-19 17:13:10 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-02-19 17:40:38 +0800 |
| commit | 62591a1abc0abdc8f25c1604a70404be00984a6f (patch) | |
| tree | ab2591ac33d10815e1f51be5c064c9e3ab479f7a /Library/Formula | |
| parent | a9cd46344d9917f23542243e78a3e002b87d0f0c (diff) | |
| download | homebrew-62591a1abc0abdc8f25c1604a70404be00984a6f.tar.bz2 | |
n: add test and modernize
Closes #36955.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/n.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/n.rb b/Library/Formula/n.rb index e259ce136..478e88e3b 100644 --- a/Library/Formula/n.rb +++ b/Library/Formula/n.rb @@ -1,5 +1,3 @@ -require "formula" - class N < Formula homepage "https://github.com/visionmedia/n" head "https://github.com/visionmedia/n.git" @@ -10,4 +8,8 @@ class N < Formula bin.mkdir system "make", "PREFIX=#{prefix}", "install" end + + test do + system bin/"n", "ls" + end end |
