Created
July 27, 2010 08:47
-
-
Save icantrap/491953 to your computer and use it in GitHub Desktop.
Autotest init hook - rerun all on factory_girl factory change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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