rtomayko / tilt

Generic interface to multiple Ruby template engines

This URL has Read+Write access

tilt / .autotest
100644 14 lines (12 sloc) 0.344 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rubygems'
require 'bacon'
require 'autotest/bacon'
 
class Autotest::Bacon < Autotest
  undef make_test_cmd
  def make_test_cmd(files_to_test)
    args = files_to_test.keys.flatten.join(' ')
    args = '-a' if args.empty?
    # TODO : make regex to pass to -n using values
    "#{ruby} -S bacon -I#{libs} -o TestUnit #{args}"
  end
end