Permalink
Browse files

Add hook for autotest to re-run all tests when any source file changes

  • Loading branch information...
1 parent 6f1f154 commit 70a5404b8d4f3291c55dc021aeb6f4d5f90a474a Grant Hutchins & Peter Jaros committed Nov 17, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 .autotest
View
@@ -0,0 +1,5 @@
+Autotest.add_hook :initialize do |at|
+ at.add_mapping(%r%^lib/.*\.rb$%, true) { |filename, _|
+ at.files_matching %r%^spec/.*_spec.rb$%
+ }
+end

0 comments on commit 70a5404

Please sign in to comment.