Skip to content

Instantly share code, notes, and snippets.

@nordringrayhide
Created August 29, 2010 05:45
Show Gist options
  • Save nordringrayhide/556010 to your computer and use it in GitHub Desktop.
Save nordringrayhide/556010 to your computer and use it in GitHub Desktop.
require 'autotest/restart' # перезапускати процес при після зміни файла .autotest
require 'redgreen/autotest' # підфарбовування результатів тестів(потрібен гем redgreen)
require 'autotest/growl' # Інтеграція з системою сповіщень ОС
Autotest.add_hook :initialize do |autotest|
%w{.git .svn .hg .DS_Store ._* vendor tmp log doc .swo .swp}.each do |exception|
autotest.add_exception(exception)
end
autotest.add_mapping %r%^test/factories/.*\.rb$% do |filename, match_data|
autotest.files_matching %r%^test/(unit|controllers|views|functional|integral)/.*_test\.rb$%
end
false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment