Permalink
Browse files

Added autotest mappings

  • Loading branch information...
1 parent c701ae5 commit 9dbd8cc60661d4ce65cf918da4315b01ac395d9b @jferris jferris committed Jun 1, 2008
Showing with 9 additions and 0 deletions.
  1. +9 −0 .autotest
View
@@ -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

0 comments on commit 9dbd8cc

Please sign in to comment.