public
Rubygem
Clone URL: git://github.com/thoughtbot/factory_girl.git
factory_girl / .autotest
100644 10 lines (8 sloc) 0.51 kb
1
2
3
4
5
6
7
8
9
10
Autotest.add_hook :initialize do |at|
  at.clear_mappings
 
  at.add_mapping(%r{^test/.*_test\.rb$}) {|f, _| [f] }
  at.add_mapping(%r{^lib/factory_girl/(.*)\.rb$}) {|_, m| ["test/#{m[1]}_test.rb",
                                                               "test/integration_test.rb"] }
  at.add_mapping(%r{^test/(test_helper|models)\.rb$}) { at.files_matching %r{^test/.*_test\.rb$} }
  at.add_mapping(%r{^lib/.*\.rb$}) { at.files_matching %r{^test/.*_test\.rb$} }
end