Permalink
Browse files

Just running all tests on any file save. They are so fast it is just …

…easier this way.
  • Loading branch information...
1 parent 46aa711 commit d923fd18a3e7f3f07bf8be2253b4151a6e893eb0 @jnunemaker jnunemaker committed May 8, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 specs.watchr
View
@@ -36,10 +36,10 @@ def related_test_files(path)
Dir['test/**/*.rb'].select { |file| file =~ /test_#{File.basename(path)}/ }
end
-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('lib/plucky/criteria_merger\.rb') { |m| run_test_file('test/test_query.rb') }
+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 d923fd1

Please sign in to comment.