|
|
@@ -14,7 +14,7 @@ func TestRepo(t *testing.T) {
|
|
|
repo.Name = "testrepo"
|
|
|
repo.Owner = new(User)
|
|
|
repo.Owner.Name = "testuser"
|
|
|
- repo.ExternalTrackerFormat = "https://someurl.com/{user}/{repo}/{issue}"
|
|
|
+ repo.ExternalTrackerFormat = "https://gitlab.com/{user}/{repo}/{issue}"
|
|
|
|
|
|
Convey("When no external tracker is configured", func() {
|
|
|
Convey("It should be nil", func() {
|
|
|
@@ -23,7 +23,7 @@ func TestRepo(t *testing.T) {
|
|
|
})
|
|
|
Convey("It should be nil even if other settings are present", func() {
|
|
|
repo.EnableExternalTracker = false
|
|
|
- repo.ExternalTrackerFormat = "http://someurl.com/{user}/{repo}/{issue}"
|
|
|
+ repo.ExternalTrackerFormat = "http://gitlab.com/{user}/{repo}/{issue}"
|
|
|
repo.ExternalTrackerStyle = markup.ISSUE_NAME_STYLE_NUMERIC
|
|
|
So(repo.ComposeMetas(), ShouldEqual, map[string]string(nil))
|
|
|
})
|
|
|
@@ -55,7 +55,7 @@ func TestRepo(t *testing.T) {
|
|
|
})
|
|
|
Convey("It should contain the URL format", func() {
|
|
|
metas := repo.ComposeMetas()
|
|
|
- So(metas["format"], ShouldEqual, "https://someurl.com/{user}/{repo}/{issue}")
|
|
|
+ So(metas["format"], ShouldEqual, "https://gitlab.com/{user}/{repo}/{issue}")
|
|
|
})
|
|
|
})
|
|
|
})
|