title: How to dump sinatra rack test exceptions to console?
body: <p>While I develop, I would like to see sinatra app exceptions when running tests, cosider example:</p>
  
  <pre><code>require 'sinatra/base'
  
  class ExceptionWeb &lt; Sinatra::Base
    enable :raise_errors
    enable :dump_errors
    configure do 
      enable :dump_errors
    end
    get "/" do
      raise "hell"
      "ok"
    end
    def self.bad_method
      raise "bad method"    
    end
  end
  
  
  require 'rack/test'
  
  describe 'The Web interface' do
    include Rack::Test::Methods
  
    def app
      ExceptionWeb
    end
    it "should error out" do
      get "/"
      #puts last_response.errors
      #ExceptionWeb.bad_method
      #last_response.should be_ok
    end
  end
  </code></pre>
  
  <p>Following rspec code shows no exceptions at all, if I uncomment last_response, then I see something is wrong, but I don't see what was wrong.</p>
  
  <p>But calling <code>mad_method</code> shows me exception.</p>
  
  <p>And adding <code>puts last_response.errors</code> to every test doesn't look proper.</p>
  
  <p>I tried sinatra config options <code>raise_errors</code> and <code>dump_errors</code> but that doesn't help me much.</p>
  
  <p>Any ideas?</p>