Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (24 sloc) 0.809 kB
# -*- ruby -*-
require 'autotest/restart'
Autotest.add_hook :initialize do |at|
at.testlib = 'minitest/autorun'
at.add_exception %r%/\.git/%
at.add_exception %r%/\.svn/%
at.add_exception %r%\.rbc$%
at.add_exception %r%test/rubygems/rubygems%
at.find_directories.clear
at.find_directories.push 'lib', 'test'
at.add_mapping %r%^lib/rubygems.rb$% do |_, m|
"test/rubygems/test_gem.rb"
end
at.add_mapping %r%^lib/rubygems/(.*).rb$% do |_, m|
"test/rubygems/test_gem_#{m[1].gsub '/', '_'}.rb"
end
at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
at.files_matching %r%^test/rubygems/test_(.*)\.rb$%
end
# at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
# files_matching %r%^test/test_(.*)\.rb%%
# end
at.find_directories = ARGV unless ARGV.empty?
end
Jump to Line
Something went wrong with that request. Please try again.