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
1 changed files with 1 additions and 1 deletions

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