Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 14 lines (11 sloc) 0.357 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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
Something went wrong with that request. Please try again.