Created
November 4, 2010 17:23
-
-
Save jwelshiv/662812 to your computer and use it in GitHub Desktop.
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
require 'autotest/growl' | |
Autotest.add_hook(:initialize) {|at| | |
at.add_exception %r{^\.git} # ignore Version Control System | |
at.add_exception %r{^./tmp} # ignore temp files, lest autotest will run again, and again... | |
# at.clear_mappings # take out the default (test/test*rb) | |
at.add_mapping(%r{^lib/.*\.rb$}) {|f, _| | |
Dir['spec/**/*.rb'] | |
} | |
nil | |
} | |
Autotest.add_hook :initialize do |at| | |
at.add_mapping(%r%^spec/(integration)/.*rb$%) {|filename, _| | |
filename | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment