public
Description: BrainBuster - a logic captcha for Rails
Homepage: http://opensource.thinkrelevance.com/wiki/BrainBuster
Clone URL: git://github.com/rsanheim/brain_buster.git
brain_buster / .autotest
100644 12 lines (10 sloc) 0.305 kb
1
2
3
4
5
6
7
8
9
10
11
12
Autotest.add_hook :initialize do |at|
  at.clear_mappings
  
  # rerun all tests for any change to a lib file
  at.add_mapping(%r%^lib/(.*)\.rb$%) do |filename, match|
    at.files_matching %r%^spec/.*_spec.rb$%
  end
  at.add_mapping(/^spec.*\/.*_spec\.rb$/) do |filename, match|
    filename
  end
 
end