Created
April 13, 2010 07:47
-
-
Save epitron/364403 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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