2018-08-01 04:58:49 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :resource_label_event do
|
2019-10-01 20:06:26 -04:00
|
|
|
action { :add }
|
2018-08-01 04:58:49 -04:00
|
|
|
label
|
2020-10-20 17:09:41 -04:00
|
|
|
user { issuable&.author || association(:user) }
|
2018-09-07 09:39:20 -04:00
|
|
|
|
|
|
|
after(:build) do |event, evaluator|
|
|
|
|
event.issue = create(:issue) unless event.issuable
|
|
|
|
end
|
2018-08-01 04:58:49 -04:00
|
|
|
end
|
|
|
|
end
|