Permalink
Browse files

my hax autotest config so i can have test the code in /models (rather…

… than move it into /lib)
  • Loading branch information...
1 parent e288aab commit d170cb226dfee247e4e72c8152e2c00a73649ec6 @scrooloose committed Mar 2, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 .autotest
View
@@ -0,0 +1,6 @@
+Autotest.add_hook :initialize do |at|
+ at.add_mapping(/models\/.*rb/) do |f, _|
+ test_file = f.sub(/models\/(.*)\.rb/, 'spec/\1_spec.rb')
+ at.files_matching Regexp.new(test_file)
+ end
+end

0 comments on commit d170cb2

Please sign in to comment.