public
Description: A scripting framework that replaces rake and sake
Homepage: http://www.yehudakatz.com
Clone URL: git://github.com/wycats/thor.git
thor / .autotest
100644 9 lines (8 sloc) 0.361 kb
1
2
3
4
5
6
7
8
9
Autotest.add_hook :initialize do |at|
  at.clear_mappings
  at.add_exception(/\.git/)
  at.add_exception(/spec\/sandbox/)
  at.add_mapping(%r{^spec/.*_spec}) {|filename,_| at.files_matching %r{#{filename}}}
  at.add_mapping(%r{^bin/thor}) {|_,_| at.files_matching %r{spec/thor_runner_spec}}
  at.add_mapping(%r{}) {|_,_| at.files_matching %r{spec/.*_spec}}
end