Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6cf04785cb
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.454 kB
# -*- ruby -*-
require 'autotest/restart'
Autotest.add_hook :initialize do |at|
at.testlib = 'minitest/autorun'
at.add_exception '.git'
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')
end
end
Jump to Line
Something went wrong with that request. Please try again.