diff options
author | Yauhen Kotau <yauhen.kotau@psa-software.com> | 2019-02-18 20:08:36 +0300 |
---|---|---|
committer | Yauhen Kotau <yauhen.kotau@psa-software.com> | 2019-02-18 20:08:36 +0300 |
commit | 04daa0b9701cd5b53c3c1fd6529aba05e4189114 (patch) | |
tree | 2680c1b9eca8317168018e2219d7fb718e32848f /spec/factories/projects.rb | |
parent | fe10964a6884162b9272ec3a32a5736c2a997ab2 (diff) | |
download | gitlab-ce-04daa0b9701cd5b53c3c1fd6529aba05e4189114.tar.gz |
Added YouTrack integration
Fixes gitlab-org/gitlab-ce#42595
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r-- | spec/factories/projects.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index f7ef34d773b..0efb15337ed 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -313,6 +313,21 @@ FactoryBot.define do end end + factory :youtrack_project, parent: :project do + has_external_issue_tracker true + + after :create do |project| + project.create_youtrack_service( + active: true, + properties: { + 'project_url' => 'http://youtrack/projects/project_guid_in_youtrack', + 'issues_url' => 'http://youtrack/issues/:id', + 'new_issue_url' => 'http://youtrack/newIssue' + } + ) + end + end + factory :jira_project, parent: :project do has_external_issue_tracker true jira_service |