提交 3af7b16c 编写于 作者: Y Yves Senn

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
上级 5bee14f3
......@@ -116,6 +116,11 @@ def test_controller_raise_error_about_missing_helper
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册