Skip to content
Browse files

Autotest stub.

  • Loading branch information...
1 parent 0d87859 commit 2a689d94e9ec0222bb3ef057d6b836bf4654959b @jbarnette committed
Showing with 26 additions and 6 deletions.
  1. +26 −0 .autotest
  2. +0 −6 History.txt
View
26 .autotest
@@ -0,0 +1,26 @@
+Autotest.add_hook :initialize do |at|
+ at.add_exception ".git"
+ at.add_exception "test/fixtures"
+ at.add_exception "test/helper.rb"
+ at.add_exception "bin/lather"
+ at.add_exception ".autotest"
+ at.add_exception "Rakefile"
+ at.add_exception "README.rdoc"
+ at.add_exception "MANIFEST"
+ at.add_exception "tasks"
+
+ at.clear_mappings
+
+ at.add_mapping(/^lib\/lather\.rb$/) do |filename, _|
+ at.files_matching(/^test\/.*_test\.rb$/)
+ end
+
+ at.add_mapping(/^lib\/.*\.rb$/) do |filename, _|
+ possible = File.basename(filename, ".rb")
+ at.files_matching %r%^test/.*#{possible}_test.rb$%
+ end
+
+ at.add_mapping(/^test.*\/.*_test\.rb$/) do |filename, _|
+ filename
+ end
+end
View
6 History.txt
@@ -1,6 +0,0 @@
-=== 1.0.0 / 2009-01-26
-
-* 1 major enhancement
-
- * Birthday!
-

0 comments on commit 2a689d9

Please sign in to comment.
Something went wrong with that request. Please try again.