From c511997c4d78267b96aba21234c476b946c4109c Mon Sep 17 00:00:00 2001 From: brianc Date: Sun, 10 Oct 2010 22:27:42 -0500 Subject: [PATCH] updated watch file to use node test script --- watch.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/watch.rb b/watch.rb index 7092f1c..88eb462 100644 --- a/watch.rb +++ b/watch.rb @@ -1,13 +1,8 @@ #watch file -def run_test_file(f) - puts "running #{f}" - system "node #{f}" - puts "done" -end watch('lib/(.*)\.js') { |md| - puts Dir["test/*.js"].each { |f| run_test_file(f) } + system "node test-units.js" } watch('test/(.*)\.js') { |md| - run_test_file(md) + system "node test-units.js" }