public
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thechrisoshow/shoulda.git
bjhess (author)
Fri Oct 17 07:53:43 -0700 2008
rmm5t (committer)
Fri Nov 07 12:30:07 -0800 2008
commit  d06e0207244b5f23e62199aa691619136900358d
tree    cd7b7c70d33c88f676e7d0a6776d208973840539
parent  48a9202b9338b734fc77910fc85e535785843bac
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