public
Description: API wrapper for Twitter and Twitter Search API's
Homepage: http://twitter.rubyforge.org/
Clone URL: git://github.com/jnunemaker/twitter.git
Click here to lend your support to: twitter and make a donation at www.pledgie.com !
twitter / .autotest
100644 14 lines (11 sloc) 0.357 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Autotest.add_hook(:initialize) do |at|
  at.add_exception(".git")
end
 
Autotest.add_hook(:initialize) do |at|
  at.clear_mappings
 
  at.add_mapping %r%/^lib/(.*)\.rb$% do |_, m|
    possible = File.basename(m[1])
    files_matching %r%^test/.*(#{possible}_test|test_#{possible})\.rb$%
  end
 
  at.add_mapping(%r%^test/.*\.rb$%) {|filename, _| filename }
end