Autotest.add_hook :initialize do |at|
%w{.hg .git .svn stories tmtags Rakefile \
nbproject Capfile README spec/spec.opts \
spec/rcov.opts vendor/gems autotest svn-commit \
.DS_Store }.each {
|exception|at.add_exception(exception)
}

at.add_mapping(%r%^app/models/.*\.rb$%) {
at.files_matching(%r%^spec/models/.*_spec.rb$%)
}

end