public
Description: A tiny parser for RSS and Atom feeds built on Hpricot
Homepage:
Clone URL: git://github.com/jnicklas/feed_me.git
feed_me / .autotest
100644 19 lines (14 sloc) 0.723 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Redefines the mappings in order for Autotest to pick up on a merb app
puts "loaded .autotest"
require 'autotest/redgreen'
 
Autotest.add_hook :initialize do |at|
  at.clear_mappings
  at.add_exception(/\.git/)
 
  at.add_mapping(%r{^spec/.*_spec\.rb$}) { |filename, _| filename}
 
  at.add_mapping(%r{^spec/spec_helper\.rb$}) { |_, m| at.files_matching %r{^spec/.*_spec\.rb$} }
  at.add_mapping(%r{^spec/(.*)/spec_helper\.rb$}) { |_, m| at.files_matching %r{^spec/#{m[1]}/.*_spec\.rb$} }
 
  # map root libs
  at.add_mapping(%r{^lib/([^/]+)\.rb$}) { |_, m| at.files_matching %r{^spec/([^/]+)_spec\.rb$} }
 
  # map libs
  at.add_mapping(%r{^lib/[^/]+/([^/]+)\.rb$}) { |_, m| at.files_matching %r{^spec/#{m[1]}_spec\.rb$} }
end