Commit 649ce056 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use foo%2Fbar in tests

We should test with what actually happens, e.g. foo%2Fbar, not
foo/bar.
parent cd2bffd6
...@@ -282,9 +282,9 @@ func TestRegularProjectsAPI(t *testing.T) { ...@@ -282,9 +282,9 @@ func TestRegularProjectsAPI(t *testing.T) {
for _, resource := range []string{ for _, resource := range []string{
"/api/v3/projects/123/repository/not/special", "/api/v3/projects/123/repository/not/special",
"/api/v3/projects/foo/bar/repository/not/special", "/api/v3/projects/foo%2Fbar/repository/not/special",
"/api/v3/projects/123/not/special", "/api/v3/projects/123/not/special",
"/api/v3/projects/foo/bar/not/special", "/api/v3/projects/foo%2Fbar/not/special",
} { } {
resp, err := http.Get(ws.URL + resource) resp, err := http.Get(ws.URL + resource)
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment