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
