From 33f192755a48fb5dccdd302a9d43f1fd39ee5c48 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Tue, 4 Feb 2014 16:52:09 -0800 Subject: node: add test Closes #26419. Signed-off-by: Mike McQuaid --- Library/Formula/node.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index d32999c08..fe979b7ce 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -95,4 +95,13 @@ class Node < Formula end end end + + test do + path = testpath/"test.js" + path.write "console.log('hello');" + + output = `#{bin}/node #{path}`.strip + assert_equal "hello", output + assert_equal 0, $?.exitstatus + end end -- cgit v1.2.3