gitlab-org--gitlab-foss/spec/factories/services.rb
Sean McGivern 9f612cc428 Fix issues mentioned but not closed for JIRA
The `ReferenceExtractor` would return an array of `ExternalIssue`
objects, and then perform `Array#-` to remove the issues
closed. `ExternalIssue`s had `==` defined, but not `hash` or `eql?`,
which are used by `Array#-`.
2017-03-06 14:18:49 +00:00

24 lines
484 B
Ruby

FactoryGirl.define do
factory :service do
project factory: :empty_project
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