public
Description: A chess hax in ruby
Clone URL: git://github.com/scrooloose/chesticles.git
chesticles / .autotest
100644 7 lines (6 sloc) 0.196 kb
1
2
3
4
5
6
7
Autotest.add_hook :initialize do |at|
  at.add_mapping(/models\/.*rb/) do |f, _|
    test_file = f.sub(/models\/(.*)\.rb/, 'spec/\1_spec.rb')
    at.files_matching Regexp.new(test_file)
  end
end