Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
5ce3845f
Commit
5ce3845f
authored
Mar 06, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRY up {jira,kubernets}_project factories
parent
9f612cc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
spec/factories/projects.rb
spec/factories/projects.rb
+2
-21
No files found.
spec/factories/projects.rb
View file @
5ce3845f
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment