d40e1f547e
Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
37 lines
864 B
Ruby
37 lines
864 B
Ruby
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
|
|
project factory: :empty_project
|
|
active true
|
|
properties({
|
|
namespace: 'somepath',
|
|
api_url: 'https://kubernetes.example.com',
|
|
token: 'a' * 40
|
|
})
|
|
end
|
|
|
|
factory :jira_service do
|
|
project factory: :empty_project
|
|
active true
|
|
properties(
|
|
url: 'https://jira.example.com',
|
|
project_key: 'jira-key'
|
|
)
|
|
end
|
|
end
|