Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 196 Bytes
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