Permalink
Browse files

Assert the nature of the original exception

Just so it's clearer what's going on in the following assertion.

/cc #11993 @robin850
  • Loading branch information...
matthewd committed Jul 12, 2014
1 parent ba62fa5 commit 424878526276c989a02f0ae353da630d234f519c
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionview/test/template/render_test.rb
@@ -328,6 +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_instance_of NameError, exception.original_exception
assert_equal :partial_name_local_variable, exception.original_exception.name
end

0 comments on commit 4248785

Please sign in to comment.