diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-07-11 16:41:19 -0400 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-07-11 16:41:19 -0400 |
commit | e454a3d994b101c905d4ef4ea3dde1b402e3fc24 (patch) | |
tree | 55fe73fe11ca5d930d01fd913eedc095a20331e2 /actionview/test | |
parent | 132d400b6f1b73f828b8d50b90edac72244e11c5 (diff) | |
parent | 5f6b7c96fb3388bdd8488282f303f2e058c5a8fa (diff) | |
download | rails-e454a3d994b101c905d4ef4ea3dde1b402e3fc24.tar.gz rails-e454a3d994b101c905d4ef4ea3dde1b402e3fc24.tar.bz2 rails-e454a3d994b101c905d4ef4ea3dde1b402e3fc24.zip |
Merge pull request #11993 from razielgn/actionview-use-name-to-inspect-error
Use NameError#name to assert raised error.
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/render_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb index 67f1aabbd2..e9e33bb5f6 100644 --- a/actionview/test/template/render_test.rb +++ b/actionview/test/template/render_test.rb @@ -328,7 +328,7 @@ module RenderTestCases 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 |