From 424878526276c989a02f0ae353da630d234f519c Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sat, 12 Jul 2014 18:52:40 +0930 Subject: Assert the nature of the original exception Just so it's clearer what's going on in the following assertion. /cc #11993 @robin850 --- actionview/test/template/render_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionview') diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb index e9e33bb5f6..a26f20d522 100644 --- a/actionview/test/template/render_test.rb +++ b/actionview/test/template/render_test.rb @@ -328,6 +328,7 @@ module RenderTestCases 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 -- cgit v1.2.3