Sha256: 4804220ace8f2afcb494e7bbe524b05b863fe8196c89729d810927595dd62839
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
require 'autotest/restart' Autotest.add_hook :initialize do |at| at.add_exception '.git' at.testlib = 'minitest/autorun' at.unit_diff = 'cat' 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('Gntp', 'GNTP').gsub('Udp', 'UDP') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-growl-4.1 | .autotest |
ruby-growl-4.0 | .autotest |