1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Tighten the rescue clause here to prevent hiding strange mock related errors behind the line offset test

This commit is contained in:
Michael Koziarski 2008-06-30 19:10:48 +03:00
parent e358b1fce8
commit efd18066a2

View file

@ -103,7 +103,7 @@ class TestController < ActionController::Base
def render_line_offset
begin
render :inline => '<% raise %>', :locals => {:foo => 'bar'}
rescue => exc
rescue RuntimeError => exc
end
line = exc.backtrace.first
render :text => line