Permalink
Browse files

Watchr fix for nested test files.

  • Loading branch information...
1 parent edaeeba commit e15c6a5e7879c8ec79346c662993707198563836 @jnunemaker committed Dec 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 specs.watchr
View
2 specs.watchr
@@ -24,7 +24,7 @@ def related_test_files(path)
end
watch('test/test_helper\.rb') { system('clear'); run_all_tests }
-watch('test/test_.*\.rb') { |m| system('clear'); run_test_file(m[0]) }
+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-\

0 comments on commit e15c6a5

Please sign in to comment.