Permalink
Browse files

Setting watchr back up to run for individual files rather than all te…

…sts.
  • Loading branch information...
1 parent f7cf1fa commit 9aea956530c291ca0d8171859f006a1bf98c9bed @jnunemaker jnunemaker committed May 12, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 specs.watchr
View
8 specs.watchr
@@ -36,10 +36,10 @@ def related_test_files(path)
Dir['test/**/*.rb'].select { |file| file =~ /test_#{File.basename(path)}/ }
end
-watch('.*\.rb') { system('clear'); run_all_tests }
-# watch('test/helper\.rb') { system('clear'); run_all_tests }
-# watch('test/test_.*\.rb') { |m| system('clear'); run_test_file(m[0]) }
-# watch('lib/.*') { |m| related_test_files(m[0]).each { |file| run_test_file(file) } }
+# watch('.*\.rb') { system('clear'); run_all_tests }
+watch('test/helper\.rb') { system('clear'); run_all_tests }
+watch('test/.*test_.*\.rb') { |m| system('clear'); run_test_file(m[0]) }
+watch('lib/.*') { |m| related_test_files(m[0]).each { |file| run_test_file(file) } }
# Ctrl-\
Signal.trap('QUIT') do

0 comments on commit 9aea956

Please sign in to comment.