aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTim D. Smith2015-03-02 21:12:30 -0800
committerTim D. Smith2015-03-02 21:34:24 -0800
commit483c1e9b0bbd9ce1d303b117d1bad8804cc64bd1 (patch)
tree89cad2f402993e0ac22d4b1f733bfca5e3ff7805 /Library/Formula
parentdc50d2b209075e9a21bc5f516b469077eb7018ae (diff)
downloadhomebrew-483c1e9b0bbd9ce1d303b117d1bad8804cc64bd1.tar.bz2
nu: add test
Closes #37344. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nu.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/nu.rb b/Library/Formula/nu.rb
index 000ec0575..11f0a3e99 100644
--- a/Library/Formula/nu.rb
+++ b/Library/Formula/nu.rb
@@ -1,5 +1,3 @@
-require 'formula'
-
class Nu < Formula
homepage 'http://programming.nu'
url 'https://github.com/timburks/nu/archive/v2.1.1.tar.gz'
@@ -58,4 +56,8 @@ EOS
end
return nil
end
+
+ test do
+ system bin/"nush", "-e", '(puts "Everything old is Nu again.")'
+ end
end