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

resource_state_event.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 926c6dd8cbcaa2577c57df449c55dd1c5c7d6d20 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

FactoryBot.define do
  factory :resource_state_event do
    issue { merge_request.nil? ? association(:issue) : nil }
    merge_request { nil }
    state { :opened }
    user { issue&.author || merge_request&.author || association(:user) }
  end
end