Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 320 Bytes
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