2008-06-01 14:14:21 -04:00
|
|
|
Autotest.add_hook :initialize do |at|
|
|
|
|
at.clear_mappings
|
|
|
|
|
|
|
|
at.add_mapping(%r{^test/.*_test\.rb$}) {|f, _| [f] }
|
2011-10-21 13:40:41 -04:00
|
|
|
at.add_mapping(%r{^lib/factory_girl/(.*)\.rb$}) {|_, m| ["test/#{m[1]}_test.rb",
|
2008-06-01 14:14:21 -04:00
|
|
|
"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
|