Browse files

changed autotest mapping

  • Loading branch information...
1 parent b2f4b2d commit e466d33d2de9abfb1402a6088dbe455d81b86c6f @bkeepers bkeepers committed Aug 22, 2008
Showing with 13 additions and 0 deletions.
  1. +13 −0 .autotest
View
13 .autotest
@@ -0,0 +1,13 @@
+Autotest.add_hook :initialize do |at|
+ at.clear_mappings
+
+ at.add_mapping %r%^lib/(.*)\.rb$% do |_, m|
+ at.files_matching %r%^test/#{m[1]}_test.rb$%
+ end
+
+ at.add_mapping(%r%^test/.*\.rb$%) {|filename, _| filename }
+
+ at.add_mapping %r%^test/fixtures/(.*)s.yml% do |_, _|
+ at.files_matching %r%^test/.*\.rb$%
+ end
+end

0 comments on commit e466d33

Please sign in to comment.