public
Description: An awesome replacement for acts_as_nested_set and better_nested_set.
Homepage:
Clone URL: git://github.com/collectiveidea/awesome_nested_set.git
Click here to lend your support to: awesome_nested_set and make a donation at www.pledgie.com !
awesome_nested_set / .autotest
100644 13 lines (10 sloc) 0.329 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
Autotest.add_hook :initialize do |at|
  at.clear_mappings
 
  at.add_mapping %r%^lib/(.*)\.rb$% do |_, m|
    at.files_matching %r%^test/#{m[1]}_test.rb$%
  end
 
  at.add_mapping(%r%^test/.*\.rb$%) {|filename, _| filename }
 
  at.add_mapping %r%^test/fixtures/(.*)s.yml% do |_, _|
    at.files_matching %r%^test/.*\.rb$%
  end
end