Sha256: ff42ee26223ac79ecc4c49a5b5994649d19071467eabb3e9efe4c32c644fc7f0
Contents?: true
Size: 477 Bytes
Versions: 14
Compression:
Stored size: 477 Bytes
Contents
# vim: filetype=ruby require 'autotest/restart' 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
Version data entries
14 entries across 14 versions & 1 rubygems