add test-case to verify `error.path` when a helper was not found.

This verifies the code added with:
99c9d18601
This commit is contained in:
Yves Senn 2013-07-12 15:40:47 +02:00
parent 5bee14f3a4
commit 3af7b16c11
1 changed files with 5 additions and 0 deletions

View File

@ -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