Unit tests for routers/repo/issue_label (#3198)

This commit is contained in:
Ethan Koenig authored and Lauris BH committed 2017-12-15 23:11:02 +02:00
1 parent bde0409433
commit befa7445d2
15 files changed
+231 -42

No files matched your search

-6
View File
@@ -303,9 +303,3 @@ func GetCSRF(t testing.TB, session *TestSession, urlStr string) string {
doc := NewHTMLParser(t, resp.Body)
return doc.GetCSRF()
}
func RedirectURL(t testing.TB, resp *httptest.ResponseRecorder) string {
urlSlice := resp.HeaderMap["Location"]
assert.NotEmpty(t, urlSlice, "No redirect URL founds")
return urlSlice[0]
}