2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :resource_label_event do
|
2019-12-21 20:55:43 +05:30
|
|
|
action { :add }
|
2018-11-18 11:00:15 +05:30
|
|
|
label
|
2021-01-29 00:20:46 +05:30
|
|
|
user { issuable&.author || association(:user) }
|
2018-11-20 20:47:30 +05:30
|
|
|
|
|
|
|
after(:build) do |event, evaluator|
|
|
|
|
event.issue = create(:issue) unless event.issuable
|
|
|
|
end
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
|
|
|
end
|