diff options
author | Matthew Draper <matthew@trebex.net> | 2014-07-12 18:52:40 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2014-07-12 18:54:17 +0930 |
commit | 424878526276c989a02f0ae353da630d234f519c (patch) | |
tree | ff0aee90209a522389d3d51b66fb39b59c5333d6 /actionview | |
parent | ba62fa59f8600245e6fd85942ae6c3e8a9765077 (diff) | |
download | rails-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.rb | 1 |
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 |