aboutsummaryrefslogtreecommitdiffstats
path: root/.autotest
diff options
context:
space:
mode:
authorRyan Davis <ryand-ruby@zenspider.com>2010-10-18 15:41:21 -0700
committerRyan Davis <ryand-ruby@zenspider.com>2010-10-18 15:41:21 -0700
commite1ebe6e949ef3674434bfa90d271a7b74c2ac153 (patch)
treeb0c340817d75bddf9840c97a946a7217ff12e8ab /.autotest
parent7959e55ead84be096247d9622404d1c60ca21c88 (diff)
downloadrails-e1ebe6e949ef3674434bfa90d271a7b74c2ac153.tar.gz
rails-e1ebe6e949ef3674434bfa90d271a7b74c2ac153.tar.bz2
rails-e1ebe6e949ef3674434bfa90d271a7b74c2ac153.zip
Fisting arel specs -- still needs tree_manager and cleanup
Diffstat (limited to '.autotest')
-rw-r--r--.autotest26
1 files changed, 26 insertions, 0 deletions
diff --git a/.autotest b/.autotest
new file mode 100644
index 0000000000..19ea6ecbe6
--- /dev/null
+++ b/.autotest
@@ -0,0 +1,26 @@
+# -*- 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
+