13 lines
280 B
Ruby
13 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :resource_label_event do
|
|
action { :add }
|
|
label
|
|
user { issuable&.author || create(:user) }
|
|
|
|
after(:build) do |event, evaluator|
|
|
event.issue = create(:issue) unless event.issuable
|
|
end
|
|
end
|
|
end
|