From 77ff324e5aa237e0f069a3e600b03e0d33be8676 Mon Sep 17 00:00:00 2001 From: John Barnette Date: Thu, 30 Oct 2008 16:17:14 -0700 Subject: [PATCH] Halfassed .autotest file. --- .autotest | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .autotest diff --git a/.autotest b/.autotest new file mode 100644 index 0000000..1f31834 --- /dev/null +++ b/.autotest @@ -0,0 +1,14 @@ +Autotest.add_hook(:initialize) do |at| + at.clear_mappings + at.find_directories = %w(lib test) + + at.add_exception("test/helper.rb") + + at.add_mapping(/^lib\/.*\.rb$/) do |file, _| + at.files_matching(/^test\/.*_test\.rb$/) + end + + at.add_mapping(/^test\/.*_test\.rb$/) do |file, _| + file + end +end