thechrisoshow / shoulda forked from thoughtbot/shoulda

Makes tests easy on the fingers and the eyes

This URL has Read+Write access

commit  af11bb115ee4cca8c79c0dd7d87454ccc5f7da88
tree    fba220cd56b2840b4d12d14ac82e4da865c7b0be
parent  9c78fe05a1897acc9455115725c09f408f5f67ba parent  df7dbce012c69789f7f3bff500e2244a4fa1e173
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