mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 23:08:26 +00:00
WIP
This commit is contained in:
@@ -103,6 +103,7 @@ func TestIndex_Success(t *testing.T) {
|
||||
}
|
||||
|
||||
func responseContains(t *testing.T, r *httptest.ResponseRecorder, status int, bodySubstr string) {
|
||||
t.Helper()
|
||||
Equals(t, status, r.Result().StatusCode)
|
||||
body, _ := ioutil.ReadAll(r.Result().Body)
|
||||
Assert(t, strings.Contains(string(body), bodySubstr), "exp %q to be contained in %q", bodySubstr, string(body))
|
||||
|
||||
Reference in New Issue
Block a user