Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.623 kb
require 'autotest/restart'
require 'autotest/isolate'
Autotest.add_hook :run_command do |at|
at.unit_diff = 'cat'
system "#{Gem.ruby} -rubygems #{Gem.bin_path 'rake', 'rake'} generate"
end
Autotest.add_hook :initialize do |at|
at.testlib = 'minitest/unit' if at.respond_to? :testlib=
def at.path_to_classname(s)
sep = File::SEPARATOR
f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
f = f.map { |path| path.split(/_|(\d+)/).map { |seg| seg.capitalize }.join }
f = f.map { |path| path =~ /^Test/ ? path : "Test#{path}" }
f.join('::').gsub('Rdoc', 'RDoc').gsub('Ri', 'RI')
end
end
Jump to Line
Something went wrong with that request. Please try again.