public
Rubygem
Description: Bang! You've deployed!
Homepage: http://opensource.thinkrelevance.com/
Clone URL: git://github.com/relevance/cap_gun.git
rsanheim (author)
Fri Jul 04 20:16:43 -0700 2008
commit  dbf13a531efcc63befaf7ea528913ad3ea2d8cba
tree    c194fbfef07dc7039c62a7e35400bdc31afdc8ea
parent  f4c2507f8649a60d18d7b055fa3471a9b3bd4eab
cap_gun / .autotest
100644 12 lines (10 sloc) 0.273 kb
1
2
3
4
5
6
7
8
9
10
11
12
require 'autotest/menu'
 
Autotest.add_hook :initialize do |at|
  at.clear_mappings
  
  at.add_mapping(%r%lib/(.*)\.rb$%) { |filename, match|
    at.files_matching %r%^spec/#{match[1]}.*\.rb$%
  }
  at.add_mapping(%r%^spec/.*\.rb$%) { |filename, match|
    filename
  }
end