Skip to content

Instantly share code, notes, and snippets.

@thedelchop
Created July 30, 2011 23:56
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 thedelchop/1116163 to your computer and use it in GitHub Desktop.
Save thedelchop/1116163 to your computer and use it in GitHub Desktop.
Autotest configuration to run a specified file
Autotest.add_discovery { "rails" }
Autotest.add_discovery { "rspec2" }
Autotest.add_hook :initialize do |at|
if ARGV.empty?
%w{.git test vendor rerun.txt tmp public/system sqlite3 log/development.log log/production.log log/test.log log/server.log}.each {|exception| at.add_exception(exception)}
else
at.find_directories = ARGV.dup
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment