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:
parent
e358b1fce8
commit
efd18066a2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue