Skip to content

Instantly share code, notes, and snippets.

@icantrap
Created July 27, 2010 08:47
Show Gist options
  • Save icantrap/491953 to your computer and use it in GitHub Desktop.
Save icantrap/491953 to your computer and use it in GitHub Desktop.
Autotest init hook - rerun all on factory_girl factory change
Autotest.add_hook :initialize do |autotest|
autotest.add_mapping %r%^test/factories/.*\.rb$% do |filename, match_data|
autotest.files_matching %r%^test/(unit|controllers|views|functional)/.*_test\.rb$%
end
false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment