summaryrefslogtreecommitdiffstats
path: root/integrations/repo_activity_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-15 13:11:02 -0800
committerLauris BH <lauris@nix.lv>2017-12-15 23:11:02 +0200
commitbefa7445d254cc88662015222c85ccd4c96b9a10 (patch)
treed9d7bc81d0eb05c026e8b6688871b38695d5af00 /integrations/repo_activity_test.go
parentbde0409433531b024e30cf1a4d3e44051631ed85 (diff)
downloadgitea-befa7445d254cc88662015222c85ccd4c96b9a10.tar.gz
gitea-befa7445d254cc88662015222c85ccd4c96b9a10.zip
Unit tests for routers/repo/issue_label (#3198)
Diffstat (limited to 'integrations/repo_activity_test.go')
-rw-r--r--integrations/repo_activity_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/integrations/repo_activity_test.go b/integrations/repo_activity_test.go
index 49d07e7c42..d3d2de4a2c 100644
--- a/integrations/repo_activity_test.go
+++ b/integrations/repo_activity_test.go
@@ -9,6 +9,8 @@ import (
"strings"
"testing"
+ "code.gitea.io/gitea/modules/test"
+
"github.com/stretchr/testify/assert"
)
@@ -20,7 +22,7 @@ func TestRepoActivity(t *testing.T) {
testRepoFork(t, session, "user2", "repo1", "user1", "repo1")
testEditFile(t, session, "user1", "repo1", "master", "README.md", "Hello, World (Edited)\n")
resp := testPullCreate(t, session, "user1", "repo1", "master")
- elem := strings.Split(RedirectURL(t, resp), "/")
+ elem := strings.Split(test.RedirectURL(resp), "/")
assert.EqualValues(t, "pulls", elem[3])
testPullMerge(t, session, elem[1], elem[2], elem[4])