Welcome to mirror list, hosted at ThFree Co, Russian Federation.

resource_milestone_event.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a3944e013da5de98797b2b91168e077990694bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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