Sha256: c7f6b653b5cd134dd3164886cf0e159a97732da806ce94668026206bc798cecb

Contents?: true

Size: 504 Bytes

Versions: 17

Compression:

Stored size: 504 Bytes

Contents

# vim: filetype=ruby

require 'autotest/restart'
require 'autotest/isolate'

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

17 entries across 17 versions & 1 rubygems

Version Path
rdoc-3.9.5 .autotest
rdoc-3.9.4 .autotest
rdoc-3.9.3 .autotest
rdoc-3.9.2 .autotest
rdoc-3.9.1 .autotest
rdoc-3.9 .autotest
rdoc-3.8 .autotest
rdoc-3.7 .autotest
rdoc-3.6.1 .autotest
rdoc-3.6 .autotest
rdoc-3.5.3 .autotest
rdoc-3.5.2 .autotest
rdoc-3.5.1 .autotest
rdoc-3.5 .autotest
rdoc-3.4 .autotest
rdoc-3.3 .autotest
rdoc-3.2 .autotest