Skip to content
Browse files

Added autotest mapping

  • Loading branch information...
1 parent 351c69f commit 1e5c8668a29434e1204b2b38103e81d86f10bd3b @p8 p8 committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 .autotest
View
12 .autotest
@@ -0,0 +1,12 @@
+Autotest.add_hook :initialize do |at|
+ at.clear_mappings
+ at.add_mapping(/^lib\/.*\.rb$/) do |filename, _|
+ possible = File.basename(filename).gsub '_', '_?'
+ at.files_matching %r%^test/.*#{possible}$%
+ end
+
+ at.add_mapping(/^test\/.*\_test.rb/) do |f, _|
+ at.files_matching(/^test\/.*_test.rb$/)
+ end
+
+end

0 comments on commit 1e5c866

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