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)
Sat Apr 26 14:42:14 -0700 2008
commit  28d9140a7ea45f9a305b251a544ead425fcd58e4
tree    f2dd24073247c9ccd8572e4d778c39247bcdad55
parent  102fe37adc9a9b2c23132791bf16c0ff13553b3b
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