Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 329 Bytes
# add rules for /other/ specs
Autotest.add_hook :initialize do |at|
at.add_mapping(%r%^spec/other/.*rb$%) do |filename, _|
filename
end
at.add_mapping(%r%^lib/(.*)\.rb$%) do |_, m|
["spec/other/#{m[1]}_spec.rb"]
end
at.add_mapping(%r%^script/(.*)\.rb$%) do |_, m|
["spec/other/#{m[1]}_spec.rb"]
end
end