aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-02-19 17:13:10 +0800
committerXu Cheng2015-02-19 17:40:38 +0800
commit62591a1abc0abdc8f25c1604a70404be00984a6f (patch)
treeab2591ac33d10815e1f51be5c064c9e3ab479f7a /Library
parenta9cd46344d9917f23542243e78a3e002b87d0f0c (diff)
downloadhomebrew-62591a1abc0abdc8f25c1604a70404be00984a6f.tar.bz2
n: add test and modernize
Closes #36955. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/n.rb6
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