thoughtbot / shoulda

Makes tests easy on the fingers and the eyes

This URL has Read+Write access

dancroak (author)
Tue Oct 07 05:29:08 -0700 2008
commit  35cc79d5334c21501c38d4fc4f278e142adb1a28
tree    f773bc2576d114f06f7462de21d30e78f2285748
parent  97fef43b687b260f7539679c0feee334022c280a
shoulda / .autotest
100644 14 lines (11 sloc) 0.335 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Autotest.add_hook :initialize do |at|
  at.add_mapping(%r{^lib/\w.*\.rb}) do
    at.files_matching(%r{^test/*/\w.*_test\.rb})
  end
 
  at.add_mapping(%r{^test/rails_root/\w.*}) do
    at.files_matching(%r{^test/*/\w.*_test\.rb})
  end
 
  at.add_exception(%r{.svn})
  at.add_exception(%r{.log$})
  at.add_exception(%r{^.autotest$})
end