Skip to content
Browse files

Fix backport error: wrong exception name

  • Loading branch information...
1 parent 8716ee4 commit 9e262de3d872fa573b8a5743813de02f18b577e3 @jeremy jeremy committed Apr 24, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/render_test.rb
View
4 actionpack/test/template/render_test.rb
@@ -301,7 +301,7 @@ def test_render_utf8_template_with_incompatible_external_encoding
begin
result = @view.render(:file => "test/utf8.html.erb", :layouts => "layouts/yield")
flunk 'Should have raised incompatible encoding error'
- rescue ActionView::Template::Error => error
+ rescue ActionView::TemplateError => error
assert_match 'invalid byte sequence in Shift_JIS', error.original_exception.message
end
end
@@ -312,7 +312,7 @@ def test_render_utf8_template_with_partial_with_incompatible_encoding
begin
result = @view.render(:file => "test/utf8_magic_with_bare_partial.html.erb", :layouts => "layouts/yield")
flunk 'Should have raised incompatible encoding error'
- rescue ActionView::Template::Error => error
+ rescue ActionView::TemplateError => error
assert_match 'invalid byte sequence in Shift_JIS', error.original_exception.message
end
end

0 comments on commit 9e262de

Please sign in to comment.
Something went wrong with that request. Please try again.