Skip to content

Instantly share code, notes, and snippets.

@epitron
Created April 13, 2010 07:47
Show Gist options
  • Save epitron/364403 to your computer and use it in GitHub Desktop.
Save epitron/364403 to your computer and use it in GitHub Desktop.
diff --git a/lib/autotest/rails_rspec.rb b/lib/autotest/rails_rspec.rb
index 2aa4f5f..df7f4cf 100644
--- a/lib/autotest/rails_rspec.rb
+++ b/lib/autotest/rails_rspec.rb
@@ -25,6 +25,11 @@ $:.push(*Dir["vendor/rails/*/lib"])
require 'active_support'
require 'autotest/rspec'
+Autotest.add_hook :died do |at, err|
+ puts "Died! Error: #{err.inspect}"
+ err.backtrace.each{|l| puts " #{l}"}
+end
+
Autotest.add_hook :initialize do |at|
%w{config/ coverage/ db/ doc/ log/ public/ script/ tmp/ vendor/rails vendor/plugins previous_fai
at.add_exception(exception)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment