Tighten the rescue clause here to prevent hiding strange mock related errors behind the line offset test
This commit is contained in:
parent
e358b1fce8
commit
efd18066a2
@ -103,7 +103,7 @@ def render_xml_with_custom_content_type
|
||||
def render_line_offset
|
||||
begin
|
||||
render :inline => '<% raise %>', :locals => {:foo => 'bar'}
|
||||
rescue => exc
|
||||
rescue RuntimeError => exc
|
||||
end
|
||||
line = exc.backtrace.first
|
||||
render :text => line
|
||||
|
Loading…
Reference in New Issue
Block a user