mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Added autotest mappings
This commit is contained in:
parent
c701ae5e55
commit
9dbd8cc606
1 changed files with 9 additions and 0 deletions
9
.autotest
Normal file
9
.autotest
Normal file
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Reference in a new issue