aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-07-12 18:52:40 +0930
committerMatthew Draper <matthew@trebex.net>2014-07-12 18:54:17 +0930
commit424878526276c989a02f0ae353da630d234f519c (patch)
treeff0aee90209a522389d3d51b66fb39b59c5333d6 /actionview
parentba62fa59f8600245e6fd85942ae6c3e8a9765077 (diff)
downloadrails-424878526276c989a02f0ae353da630d234f519c.tar.gz
rails-424878526276c989a02f0ae353da630d234f519c.tar.bz2
rails-424878526276c989a02f0ae353da630d234f519c.zip
Assert the nature of the original exception
Just so it's clearer what's going on in the following assertion. /cc #11993 @robin850
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/render_test.rb1
1 files changed, 1 insertions, 0 deletions
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