Added test coverage for template renderer.

This commit is contained in:
mikestefanello 2021-12-25 11:21:26 -05:00
parent 6501621136
commit 388718598e
6 changed files with 183 additions and 35 deletions

View file

@ -102,8 +102,8 @@ func (h *httpResponse) assertStatusCode(code int) *httpResponse {
return h
}
func (h *httpResponse) assertRedirect(t *testing.T, destination string) *httpResponse {
assert.Equal(t, destination, h.Header.Get("Location"))
func (h *httpResponse) assertRedirect(t *testing.T, route string, params ...interface{}) *httpResponse {
assert.Equal(t, c.Web.Reverse(route, params), h.Header.Get("Location"))
return h
}