summaryrefslogtreecommitdiffstats
path: root/lib/plugins/awesome_nested_set/.autotest
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/awesome_nested_set/.autotest')
-rw-r--r--lib/plugins/awesome_nested_set/.autotest13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/plugins/awesome_nested_set/.autotest b/lib/plugins/awesome_nested_set/.autotest
new file mode 100644
index 000000000..8614a6657
--- /dev/null
+++ b/lib/plugins/awesome_nested_set/.autotest
@@ -0,0 +1,13 @@
+Autotest.add_hook :initialize do |at|
+ at.clear_mappings
+
+ at.add_mapping %r%^lib/(.*)\.rb$% do |_, m|
+ at.files_matching %r%^test/#{m[1]}_test.rb$%
+ end
+
+ at.add_mapping(%r%^test/.*\.rb$%) {|filename, _| filename }
+
+ at.add_mapping %r%^test/fixtures/(.*)s.yml% do |_, _|
+ at.files_matching %r%^test/.*\.rb$%
+ end
+end \ No newline at end of file