# File lib/autotest.rb, line 101
  def self.autodiscover
    style = []

    $:.push(*Dir["vendor/plugins/*/lib"])
    paths = $:.dup

    begin
      require 'rubygems'
      paths.push(*Gem.latest_load_paths)
    rescue LoadError => e
      # do nothing
    end

    paths.each do |d|
      f = File.join(d, 'autotest', 'discover.rb')
      load f if File.exist? f
    end

    @@discoveries.map { |proc| proc.call }.flatten.compact.sort.uniq
  end