updated watch file to use node test script

This commit is contained in:
brianc 2010-10-10 22:27:42 -05:00
parent 23d3271aab
commit c511997c4d

View File

@ -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"
}