1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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