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

Version Path
rdoc-3.1 .autotest
rdoc-3.0.1 .autotest
rdoc-3.0 .autotest
rdoc-2.5.11 .autotest
rdoc-2.5.10 .autotest
rdoc-2.5.9 .autotest
rdoc-2.5.8 .autotest
rdoc-2.5.7 .autotest
rdoc-2.5.6 .autotest
rdoc-2.5.5 .autotest
rdoc-2.5.4 .autotest
rdoc-2.5.3 .autotest
rdoc-2.5.2 .autotest
rdoc-2.5.1 .autotest