summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-04-25 16:48:12 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-04-27 15:59:25 +0100
commit972440b15dfe2b76670f9bf6f39b8a9dd41589ca (patch)
treef01c7526f6d08429eb8d5c22f4157679002284ee /spec/factories
parent67974f1dfb413452ca6fc048c856360f4a843eb1 (diff)
downloadgitlab-ce-972440b15dfe2b76670f9bf6f39b8a9dd41589ca.tar.gz
tadds migration to remove invalid services
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/services.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/services.rb b/spec/factories/services.rb
index 88f6c265505..62aa71ae8d8 100644
--- a/spec/factories/services.rb
+++ b/spec/factories/services.rb
@@ -1,6 +1,19 @@
FactoryGirl.define do
factory :service do
project factory: :empty_project
+ type 'Service'
+ end
+
+ factory :custom_issue_tracker_service, class: CustomIssueTrackerService do
+ project factory: :empty_project
+ type 'CustomIssueTrackerService'
+ category 'issue_tracker'
+ active true
+ properties(
+ project_url: 'https://project.url.com',
+ issues_url: 'https://issues.url.com',
+ new_issue_url: 'https://newissue.url.com'
+ )
end
factory :kubernetes_service do