Sha256: 88c131011f0b19a630e9dfb687fc802ea20adc80f74b5f59803c2dd3b0edfc93
Contents?: true
Size: 430 Bytes
Versions: 8
Compression:
Stored size: 430 Bytes
Contents
# vim: filetype=ruby 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('::').sub 'Rdoc', 'RDoc' end end
Version data entries
8 entries across 8 versions & 2 rubygems