Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.513 kb
# -*- ruby -*-
# require 'autotest/restart'
ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8"
module Autotest::Restart
Autotest.add_hook :updated do |at, *args|
if args.flatten.include? ".autotest" then
warn "Detected change to .autotest, restarting"
cmd = %w(autotest)
cmd << " -v" if $v
cmd += ARGV
exec(*cmd)
end
end
end
Autotest.add_hook :initialize do |at|
at.add_exception 'tmp'
at.testlib = "minitest/autorun"
at.find_directories = ARGV unless ARGV.empty?
end
Jump to Line
Something went wrong with that request. Please try again.