public
Rubygem
Description: a humane, eval-safe templating system using Hpricot
Clone URL: git://github.com/mattly/hpreserve.git
Search Repo:
Click here to lend your support to: hpreserve and make a donation at www.pledgie.com !
hpreserve / .autotest
100644 11 lines (11 sloc) 0.27 kb
1
2
3
4
5
6
7
8
9
10
11
Autotest.add_hook :initialize do |at|
  at.clear_mappings
  # watch out: Ruby bug (1.8.6):
  # %r(/) != /\//
  at.add_mapping(%r%^spec/.*\.rb$%) { |filename, _|
    filename
  }
  at.add_mapping(%r%^lib/hpreserve/(.*)\.rb$%) { |_, m|
    ["spec/#{m[1]}_spec.rb"]
  }
end