public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
tsaleh (author)
Thu Apr 24 07:11:36 -0700 2008
commit  1a8227dc1a50f51bb3ffbbb09b1d2e3bbf1fe5a8
tree    c64ec85ca0088d4448dcefebfd10da34055d9c60
parent  833157cb8df6b559fe2c25b05d4a28e9dc883e31 parent  ee9bdbc00ef2a0c311c1571d947c21f79cdec92b
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