Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… than move it into /lib)
  • Loading branch information...
commit d170cb226dfee247e4e72c8152e2c00a73649ec6 1 parent e288aab
@scrooloose authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 .autotest
View
6 .autotest
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.