diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-06-30 19:10:48 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-03 19:21:04 +0300 |
commit | efd18066a25610e5c00c7e144a9a08023016e576 (patch) | |
tree | c5890874ec275f904c379148af95c0f1c6a29790 /actionpack/test/controller | |
parent | e358b1fce8fdcbac896dde08286be020420e843e (diff) | |
download | rails-efd18066a25610e5c00c7e144a9a08023016e576.tar.gz rails-efd18066a25610e5c00c7e144a9a08023016e576.tar.bz2 rails-efd18066a25610e5c00c7e144a9a08023016e576.zip |
Tighten the rescue clause here to prevent hiding strange mock related errors behind the line offset test
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 65862c6b14..10264dadaa 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -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 |