9f612cc428
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#-`.
24 lines
484 B
Ruby
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
|