diff options
author | Jarka Košanová <jarka@gitlab.com> | 2019-06-26 16:03:57 +0200 |
---|---|---|
committer | Jarka Košanová <jarka@gitlab.com> | 2019-07-02 15:00:27 +0200 |
commit | ddbbf453c76144ac60c67e783424faf843c8efa1 (patch) | |
tree | 028cd360ebcae9582ac05a4b13ba2005621c534a /spec/factories | |
parent | 0e8b76e1918a7ca441e9eb98819f10da24e0588a (diff) | |
download | gitlab-ce-ddbbf453c76144ac60c67e783424faf843c8efa1.tar.gz |
Use title and description fields for issue trackers63690-issue-trackers-title
- instead of using properties
- backward compatibility has to be kept for now
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/services.rb | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/spec/factories/services.rb b/spec/factories/services.rb index 763909f30bd..ecb481ed84a 100644 --- a/spec/factories/services.rb +++ b/spec/factories/services.rb @@ -6,8 +6,6 @@ FactoryBot.define do factory :custom_issue_tracker_service, class: CustomIssueTrackerService do project - type 'CustomIssueTrackerService' - category 'issue_tracker' active true properties( project_url: 'https://project.url.com', @@ -54,6 +52,38 @@ FactoryBot.define do ) end + factory :bugzilla_service do + project + active true + issue_tracker + end + + factory :redmine_service do + project + active true + issue_tracker + end + + factory :youtrack_service do + project + active true + issue_tracker + end + + factory :gitlab_issue_tracker_service do + project + active true + issue_tracker + end + + trait :issue_tracker do + properties( + project_url: 'http://issue-tracker.example.com', + issues_url: 'http://issue-tracker.example.com', + new_issue_url: 'http://issue-tracker.example.com' + ) + end + factory :jira_cloud_service, class: JiraService do project active true |