Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Try to get Autotest to work better

  • Loading branch information...
commit 4d3e856126d1d40dd625674f196f95284eaaaa1f 1 parent 8da5165
E. Sambo authored April 12, 2011

Showing 1 changed file with 8 additions and 1 deletion. Show diff stats Hide diff stats

  1. 9  .autotest
9  .autotest
@@ -3,7 +3,14 @@ require 'autotest/growl'
3 3
 require 'autotest/fsevent'
4 4
 
5 5
 Autotest.add_hook :initialize do |autotest|
  6
+  autotest.add_exception %r{^\.git}  # ignore Version Control System
  7
+  autotest.add_exception %r{^./tmp}  # ignore temp files, lest autotest will run again, and again...
  8
+  # autotest.clear_mappings            # take out the default (test/test*rb)
  9
+  autotest.add_mapping(%r{^app/.*\.rb$}) do |f, _|
  10
+    Dir['spec/**/*.rb']
  11
+  end
6 12
   autotest.add_mapping(/^spec\/requests\/.*_spec\.rb$/) do
7 13
     autotest.files_matching(/^spec\/requests\/.*_spec\.rb$/)
8  
-  end  
  14
+  end
  15
+  nil
9 16
 end

0 notes on commit 4d3e856

Please sign in to comment.
Something went wrong with that request. Please try again.