rtomayko / wink
- Source
- Commits
- Network (10)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Tree:
f2e2895
wink / .autotest
| f2e28950 » | rtomayko | 2008-05-27 | 1 | Autotest.add_hook :initialize do |at| | |
| 2 | at.instance_eval do | ||||
| 3 | add_exception(/\/?\.git\/.*/) | ||||
| 4 | add_exception(/\.log$/) | ||||
| 5 | add_exception(/(?:README|\.gitignore|\.gitmodules)$/) | ||||
| 6 | add_exception(/^(?:\.\/)?(doc|bugs|sinatra)\//) | ||||
| 7 | add_exception(/^(?:\.\/)?\.autotest/) | ||||
| 8 | |||||
| 9 | clear_mappings | ||||
| 10 | all = proc { |vn,_| files_matching(/^test\/.*_test.rb$/) } | ||||
| 11 | add_mapping(/lib\/.*\.rb/, &all) | ||||
| 12 | add_mapping(/^(?:\.\/)?views\/.*$/, &all) | ||||
| 13 | add_mapping(/^(?:\.\/)?test\/(?:help|fixtures)\.rb$/, &all) | ||||
| 14 | add_mapping(/^(?:\.\/)?test\/.*_test\.rb$/) { |fn, _| fn } | ||||
| 15 | end | ||||
| 16 | end | ||||
| 17 | |||||
| 18 | # vim: ft=ruby | ||||
