2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-10-31 14:36:28 -04:00
|
|
|
factory :subscription do
|
2017-08-02 15:55:11 -04:00
|
|
|
project
|
2017-08-04 13:14:04 -04:00
|
|
|
user { project.creator }
|
2016-10-31 14:36:28 -04:00
|
|
|
subscribable factory: :issue
|
2021-04-02 20:09:02 -04:00
|
|
|
|
|
|
|
trait :group_label do
|
|
|
|
project { nil }
|
|
|
|
user { association(:user) }
|
|
|
|
subscribable factory: :group_label
|
|
|
|
end
|
2016-10-31 14:36:28 -04:00
|
|
|
end
|
|
|
|
end
|