Permalink
Browse files

added autotest config

  • Loading branch information...
drnic committed Dec 11, 2008
1 parent 94f42a5 commit 4286cd1a2ce446c18a649f417b891535d82f5e03
Showing with 15 additions and 1 deletion.
  1. +13 −0 .autotest
  2. +2 −1 .gitignore
View
@@ -0,0 +1,13 @@
+Autotest.add_hook :initialize do |at|
+ at.clear_mappings
+
+ at.add_mapping(%r%^test/test_.*.rb$%) do |filename, _|
+ filename
+ end
+ at.add_mapping(/lib\/(.*)\.rb/) do |_, m|
+ ["test/test_#{m[1]}.rb"]
+ end
+ # at.add_mapping(/.*_?generators\/(.*)\/(.*)_generator\.rb/) do |_, m|
+ # ["test/test_#{m[1]}.rb"]
+ # end
+end
View
@@ -1,3 +1,4 @@
doc
pkg
-.DS_Store
+.DS_Store
+.test-result

0 comments on commit 4286cd1

Please sign in to comment.