Skip to content
Newer
Older
100644 27 lines (19 sloc) 513 Bytes
e1ebe6e @zenspider Fisting arel specs -- still needs tree_manager and cleanup
zenspider authored Oct 18, 2010
1 # -*- ruby -*-
2
3 # require 'autotest/restart'
4
5 ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8"
6
7 module Autotest::Restart
8 Autotest.add_hook :updated do |at, *args|
9 if args.flatten.include? ".autotest" then
10 warn "Detected change to .autotest, restarting"
11 cmd = %w(autotest)
12 cmd << " -v" if $v
13 cmd += ARGV
14
15 exec(*cmd)
16 end
17 end
18 end
19
20 Autotest.add_hook :initialize do |at|
21 at.add_exception 'tmp'
22 at.testlib = "minitest/autorun"
23
24 at.find_directories = ARGV unless ARGV.empty?
25 end
26
Something went wrong with that request. Please try again.