From 513375c429435ba60a667b219bdfb00e5b760b38 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sun, 29 Oct 2017 19:04:25 -0700 Subject: Make URL scheme unambiguous (#2408) * Make URL scheme unambiguous Redirect old routes to new routes * Fix redirects to new URL scheme, and update template * Fix branches/_new endpoints, and update integration test --- integrations/repo_commits_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'integrations/repo_commits_test.go') diff --git a/integrations/repo_commits_test.go b/integrations/repo_commits_test.go index bf35398245..94d513370d 100644 --- a/integrations/repo_commits_test.go +++ b/integrations/repo_commits_test.go @@ -20,7 +20,7 @@ func TestRepoCommits(t *testing.T) { session := loginUser(t, "user2") // Request repository commits page - req := NewRequest(t, "GET", "/user2/repo1/commits/master") + req := NewRequest(t, "GET", "/user2/repo1/commits/branch/master") resp := session.MakeRequest(t, req, http.StatusOK) doc := NewHTMLParser(t, resp.Body) @@ -35,7 +35,7 @@ func doTestRepoCommitWithStatus(t *testing.T, state string, classes ...string) { session := loginUser(t, "user2") // Request repository commits page - req := NewRequest(t, "GET", "/user2/repo1/commits/master") + req := NewRequest(t, "GET", "/user2/repo1/commits/branch/master") resp := session.MakeRequest(t, req, http.StatusOK) doc := NewHTMLParser(t, resp.Body) @@ -56,7 +56,7 @@ func doTestRepoCommitWithStatus(t *testing.T, state string, classes ...string) { resp = session.MakeRequest(t, req, http.StatusCreated) - req = NewRequest(t, "GET", "/user2/repo1/commits/master") + req = NewRequest(t, "GET", "/user2/repo1/commits/branch/master") resp = session.MakeRequest(t, req, http.StatusOK) doc = NewHTMLParser(t, resp.Body) -- cgit v1.2.3