summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-03-06 14:18:59 +0000
committerSean McGivern <sean@gitlab.com>2017-03-06 14:18:59 +0000
commit5ce3845f17c2c6e168cf2bd1b3c5093f10db1953 (patch)
tree3cde200b56e210ed61888964e305e03b9ddadc77
parent9f612cc428c47a578bef8869e2e93966c021e655 (diff)
downloadgitlab-ce-5ce3845f17c2c6e168cf2bd1b3c5093f10db1953.tar.gz
DRY up {jira,kubernets}_project factoriesfix-mentioned-issues-for-external-trackers
-rw-r--r--spec/factories/projects.rb23
1 files changed, 2 insertions, 21 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 04de3512125..70c65bc693a 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -189,29 +189,10 @@ FactoryGirl.define do
factory :jira_project, parent: :project do
has_external_issue_tracker true
-
- after :create do |project|
- project.create_jira_service(
- active: true,
- properties: {
- title: 'JIRA tracker',
- url: 'http://jira.example.net',
- project_key: 'JIRA'
- }
- )
- end
+ jira_service
end
factory :kubernetes_project, parent: :empty_project do
- after :create do |project|
- project.create_kubernetes_service(
- active: true,
- properties: {
- namespace: project.path,
- api_url: 'https://kubernetes.example.com',
- token: 'a' * 40,
- }
- )
- end
+ kubernetes_service
end
end