public
Description: XMPP DSL for Ruby written on EventMachine and Nokogiri.
Homepage: http://blather.squishtech.com
Clone URL: git://github.com/sprsquish/blather.git
Click here to lend your support to: blather and make a donation at www.pledgie.com !
blather / .autotest
100644 14 lines (10 sloc) 0.496 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Autotest.add_hook :initialize do |at|
  ignore = %w[.git examples ext pkg .DS_Store CHANGELOG LICENSE VERSION.yml README.rdoc .autotest Rakefile blather.gemspec]
 
  ignore.each { |exception| at.add_exception(exception) }
 
  at.clear_mappings
 
  at.add_mapping(%r%^spec/.*_spec.rb$%) { |filename, _| filename }
  at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m| ["spec/#{m[1]}_spec.rb"] }
  at.add_mapping(%r%^spec/(spec_helper|shared/.*)\.rb$%) {
    at.files_matching %r%^spec/.*_spec\.rb$%
  }
end