title: Rails 3.2.1: Calling undefined method in view causes test to hang for 30+ seconds
body: <p>I'm upgrading my app from 3.0.9 to 3.2.1 (ruby 1.9.3-p0, rvm, bundler) and one thing that I haven't been able to track down yet is this problem. I have a controller spec (in spec/controllers) that renders views for each example. The template that it renders can have any undefined method (like calling "- blahblah" in the haml) and it causes the test to hang for over 30 seconds. Here is the error:</p>
  
  <pre><code>undefined local variable or method `blahblahblah' for #&lt;#&lt;Class:0x007fa84f76cc90&gt;:0x007fa849c578c8&gt;
  </code></pre>
  
  <p>I ran the debugger and the hang happened when trying to log the error itself. This happens in <code>activesupport-3.2.1/lib/active_support/notifications/instrumenter.rb line 22</code>. So is this Rails' fault, haml's fault, or some other library?</p>
  
  <p>Here is my Gemfile just in case something I am using may be the problem:</p>
  
  <pre><code>source 'http://rubygems.org'
  source 'http://gems.github.com'
  source 'http://gemcutter.org'
  
  gem 'rails', '3.2.1'
  gem 'rake', '~&gt; 0.9.2.2'
  gem 'mysql2', '~&gt; 0.3.11'
  gem 'htmldoc'
  gem 'haml', '~&gt; 3.1.4'
  gem 'sass', '~&gt; 3.1.4'
  gem 'hpricot'
  gem 'curb'
  gem 'mini_magick'
  gem 'liquid', '~&gt; 2.3.0'
  gem 'httparty', '~&gt; 0.8.1'
  gem 'linkedin', '0.1.7', :require =&gt; 'linkedin'
  gem 'twitter', '~&gt; 2.0.2', :require =&gt; 'twitter'
  gem 'mime-types', '&gt;=1.16', :require =&gt; 'mime/types'
  gem 'oauth'
  gem 'roxml'
  gem 'nokogiri'
  gem 'sax-machine'
  gem 'googlecharts', '1.6.7', :require =&gt; 'gchart'
  gem 'pdf-reader', '~&gt; 0.9.0'
  gem 'paper_trail'
  gem 'rubyzip', '0.9.4', :require =&gt; 'zip/zip'
  gem 'activemerchant', '~&gt; 1.20.2', :require =&gt; 'active_merchant'
  gem 'compass', '~&gt; 0.11.5'
  gem 'compass-rgbapng', '0.1.1', :require =&gt; 'rgbapng'
  gem 'fancy-buttons', '~&gt; 1.1.1'
  gem 'ruby-openid'
  gem 'RedCloth', '~&gt; 4.2.9'
  gem 'koala', '~&gt; 1.0.0'
  gem 'scoped_search', '~&gt; 2.3.6'
  gem 'wicked_pdf', '0.7.0'
  gem 'devise', '~&gt; 2.0.0'
  gem 'paperclip', '~&gt; 2.5.0'
  gem 'aws-sdk' # required for paperclip
  gem 'whois', '~&gt; 2.0.4'
  gem 'validates_timeliness', '~&gt; 3.0.8'
  gem 'will_paginate', '~&gt; 3.0.2'
  gem 'hoptoad_notifier', '~&gt; 2.4.11'
  gem 'savon', '~&gt; 0.9.2'
  gem 'escape_utils'
  gem 'ajaxful_rating', '3.0.0.beta3'
  gem 'acts_as_list', '~&gt; 0.1.3'
  gem 'despamilator', '~&gt; 2.0'
  gem 'prawn', '~&gt; 0.12.0', :submodules =&gt; true
  gem 'net-dns', '~&gt; 0.6.1'
  gem 'authlogic', '~&gt; 3.1.0'
  gem 'myspaceid-sdk', '~&gt; 0.1.11', :require =&gt; 'myspace'
  gem 'in_place_editing', '~&gt; 1.1.2'
  gem 'deadlock_retry', '~&gt; 1.1.2'
  gem 'query_trace', '~&gt; 0.1.1'
  gem 'aasm', '~&gt; 3.0.2'
  gem 'vanity', '~&gt; 1.7.1'
  gem 'prototype-rails', '~&gt; 3.2.1'
  
  group :development, :test do
    gem 'rspec-rails', '~&gt; 2.8.1'
    gem 'rspec'
  
    # one-liner to install these properly: bash &lt; &lt;(curl -L https://raw.github.com/gist/1333785)
    gem 'linecache19', '0.5.13'
    gem 'ruby-debug-base19', '0.11.26'
  
    gem 'capistrano'
  end
  
  group :test do
    gem 'factory_girl_rails'
    gem 'syntax'
    gem 'timecop', '~&gt; 0.3.5'
    gem 'capybara'
    gem 'database_cleaner'
    gem 'cucumber-rails', '~&gt; 1.2.1'
    gem 'cucumber'
    gem 'launchy'
  end
  </code></pre>
  
  <p>Thanks!</p>