jbarnette / johnson

Johnson wraps JavaScript in a loving Ruby embrace.

This URL has Read+Write access

johnson / .autotest
100644 15 lines (11 sloc) 0.306 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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