Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.357 kb
Autotest.add_hook(:initialize) do |at|
at.add_exception(".git")
end
Autotest.add_hook(:initialize) do |at|
at.clear_mappings
at.add_mapping %r%/^lib/(.*)\.rb$% do |_, m|
possible = File.basename(m[1])
files_matching %r%^test/.*(#{possible}_test|test_#{possible})\.rb$%
end
at.add_mapping(%r%^test/.*\.rb$%) {|filename, _| filename }
end
Jump to Line
Something went wrong with that request. Please try again.