technicalpickles / shoulda forked from thoughtbot/shoulda

Makes tests easy on the fingers and the eyes

This URL has Read+Write access

Fri Sep 12 11:29:07 -0700 2008
commit  963a81e093ccf25694b35b54b7a291543baab011
tree    3ffd48e58a56716b7ae067a3a13452eba215fd5b
parent  fd98d6209e5c8b3178ca27dd4b0c7375f6a91a76
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