diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-07-12 15:40:47 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-07-12 15:40:47 +0200 |
commit | 3af7b16c114802acdf0c0e7a34837a7a454fd23f (patch) | |
tree | 354495edc4813af5e99c41da67677839a0eb03d1 /actionpack/test/abstract | |
parent | 5bee14f3a46d6fc907044b739245c74edfb6012b (diff) | |
download | rails-3af7b16c114802acdf0c0e7a34837a7a454fd23f.tar.gz rails-3af7b16c114802acdf0c0e7a34837a7a454fd23f.tar.bz2 rails-3af7b16c114802acdf0c0e7a34837a7a454fd23f.zip |
add test-case to verify `error.path` when a helper was not found.
This verifies the code added with:
https://github.com/rails/rails/commit/99c9d18601539c7e7e87f26bb047add1f93072af
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r-- | actionpack/test/abstract/helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/abstract/helper_test.rb b/actionpack/test/abstract/helper_test.rb index 8616e9837f..bc3e34684c 100644 --- a/actionpack/test/abstract/helper_test.rb +++ b/actionpack/test/abstract/helper_test.rb @@ -116,6 +116,11 @@ module AbstractController e = assert_raise(AbstractController::Helpers::MissingHelperError) { AbstractInvalidHelpers.helper(:missing) } assert_equal "Missing helper file helpers/missing_helper.rb", e.message end + + def test_missing_helper_error_has_the_right_path + e = assert_raise(AbstractController::Helpers::MissingHelperError) { AbstractInvalidHelpers.helper(:missing) } + assert_equal "helpers/missing_helper.rb", e.path + end end end end |