summaryrefslogtreecommitdiff
path: root/spec/factories/projects.rb
diff options
context:
space:
mode:
authorYauhen Kotau <yauhen.kotau@psa-software.com>2019-02-18 20:08:36 +0300
committerYauhen Kotau <yauhen.kotau@psa-software.com>2019-02-18 20:08:36 +0300
commit04daa0b9701cd5b53c3c1fd6529aba05e4189114 (patch)
tree2680c1b9eca8317168018e2219d7fb718e32848f /spec/factories/projects.rb
parentfe10964a6884162b9272ec3a32a5736c2a997ab2 (diff)
downloadgitlab-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.rb15
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