Permalink
Browse files

Merge pull request #11993 from razielgn/actionview-use-name-to-inspec…

…t-error

Use NameError#name to assert raised error.
  • Loading branch information...
2 parents 132d400 + 5f6b7c9 commit e454a3d994b101c905d4ef4ea3dde1b402e3fc24 @guilleiguaran guilleiguaran committed Jul 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/test/template/render_test.rb
@@ -328,7 +328,7 @@ def test_render_partial_without_object_or_collection_does_not_generate_partial_n
exception = assert_raises ActionView::Template::Error do
@controller_view.render("partial_name_local_variable")
end
- assert_match "undefined local variable or method `partial_name_local_variable'", exception.message
+ assert_equal :partial_name_local_variable, exception.original_exception.name
end
# TODO: The reason for this test is unclear, improve documentation

0 comments on commit e454a3d

Please sign in to comment.