debian-mirror-gitlab/spec/factories/resource_milestone_event.rb
2021-01-29 00:20:46 +05:30

12 lines
318 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :resource_milestone_event do
issue { merge_request.nil? ? association(:issue) : nil }
merge_request { nil }
milestone
action { :add }
state { :opened }
user { issue&.author || merge_request&.author || association(:user) }
end
end