aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-06-30 19:10:48 +0300
committerMichael Koziarski <michael@koziarski.com>2008-07-03 19:21:04 +0300
commitefd18066a25610e5c00c7e144a9a08023016e576 (patch)
treec5890874ec275f904c379148af95c0f1c6a29790 /actionpack/test
parente358b1fce8fdcbac896dde08286be020420e843e (diff)
downloadrails-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')
-rw-r--r--actionpack/test/controller/render_test.rb2
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