public
Description: NO LONGER MAINTAINED
Homepage:
Clone URL: git://github.com/rtomayko/wink.git
cypher (author)
Sun Nov 02 12:31:03 -0800 2008
commit  aa361b05631f19429d5fbcd2758798d5ea652295
tree    cfc8003e8cd78fbb8f5d759e16f9566160d76a5d
parent  478685457340d7bc09500f6f322581b4afd68e5b
wink / .autotest
100644 19 lines (16 sloc) 0.593 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Autotest.add_hook :initialize do |at|
  at.instance_eval do
    add_exception(/\/?\.git\/.*/)
    add_exception(/\.log$/)
    add_exception(/(?:README|\.gitignore|\.gitmodules)$/)
    add_exception(/^(?:\.\/)?(doc|bugs|sinatra)\//)
    add_exception(/^(?:\.\/)?\.autotest/)
 
    clear_mappings
    all = proc { |vn,_| files_matching(/^test\/.*_test.rb$/) }
    add_mapping(/lib\/.*\.rb/, &all)
    add_mapping(/^(?:\.\/)?views\/.*$/, &all)
    add_mapping(/^(?:\.\/)?test\/(?:help|fixtures)\.rb$/, &all)
    add_mapping(/^(?:\.\/)?test\/.*_test\.rb$/) { |fn, _| fn }
  end
end
 
# vim: ft=ruby