Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created August 23, 2009 02:35
Show Gist options
  • Save ajsharp/173099 to your computer and use it in GitHub Desktop.
Save ajsharp/173099 to your computer and use it in GitHub Desktop.
require "autotest/growl"
require "autotest/fsevent"
require 'autotest/restart'
Autotest.add_hook :initialize do |at|
at.unit_diff = 'cat'
end
Autotest.add_hook :ran_command do |at|
File.open('/tmp/autotest.txt', 'wb') { |f|
f.write(at.results.join)
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment