From 9dbd8cc60661d4ce65cf918da4315b01ac395d9b Mon Sep 17 00:00:00 2001 From: Joe Ferris Date: Sun, 1 Jun 2008 11:14:21 -0700 Subject: [PATCH] Added autotest mappings --- .autotest | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .autotest diff --git a/.autotest b/.autotest new file mode 100644 index 0000000..f519128 --- /dev/null +++ b/.autotest @@ -0,0 +1,9 @@ +Autotest.add_hook :initialize do |at| + at.clear_mappings + + at.add_mapping(%r{^test/.*_test\.rb$}) {|f, _| [f] } + at.add_mapping(%r{^lib/factory_girl/(.*)\.rb$}) {|_, m| ["test/#{m[1]}_test.rb", + "test/integration_test.rb"] } + at.add_mapping(%r{^test/(test_helper|models)\.rb$}) { at.files_matching %r{^test/.*_test\.rb$} } + at.add_mapping(%r{^lib/.*\.rb$}) { at.files_matching %r{^test/.*_test\.rb$} } +end