Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 10 lines (8 sloc) 0.51 kb
9dbd8cc @jferris Added autotest mappings
jferris authored
1 Autotest.add_hook :initialize do |at|
2 at.clear_mappings
3
4 at.add_mapping(%r{^test/.*_test\.rb$}) {|f, _| [f] }
5 at.add_mapping(%r{^lib/factory_girl/(.*)\.rb$}) {|_, m| ["test/#{m[1]}_test.rb",
6 "test/integration_test.rb"] }
7 at.add_mapping(%r{^test/(test_helper|models)\.rb$}) { at.files_matching %r{^test/.*_test\.rb$} }
8 at.add_mapping(%r{^lib/.*\.rb$}) { at.files_matching %r{^test/.*_test\.rb$} }
9 end
Something went wrong with that request. Please try again.