Skip to content

Instantly share code, notes, and snippets.

@aeden
Created October 13, 2009 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aeden/209592 to your computer and use it in GitHub Desktop.
Save aeden/209592 to your computer and use it in GitHub Desktop.
module Autotest::CustomTestMatch
Autotest.add_hook :initialize do |at|
at.add_mapping(/test/) do |f, _|
at.files_matching(/_test\.rb$/)
end
at.add_mapping(/lib\/.*/) do |f, _|
at.files_matching(/_test\.rb$/)
end
at.add_exception('test/performance')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment