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:
parent
5bee14f3a4
commit
3af7b16c11
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue