Skip to content

Instantly share code, notes, and snippets.

@thisivan
Created September 28, 2010 00:12
Show Gist options
  • Save thisivan/600146 to your computer and use it in GitHub Desktop.
Save thisivan/600146 to your computer and use it in GitHub Desktop.
require "autotest/growl" # only for Mac
require "autotest/fsevent" # only for Mac
require "autotest/restart" # restart autotest when this file changes
# Don't reset terminal when finished test
Autotest::Growl::clear_terminal = false # only for Mac
Autotest.add_hook :initialize do |autotest|
# Ignore the following files
%w{.git .svn .hg .DS_Store ._* vendor tmp log doc}.each do |exception|
autotest.add_exception(exception)
end
# Scope the directories that autospec should look for
unless ARGV.empty?
autotest.find_directories = ARGV.dup
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment