gitlab-org--gitlab-foss/spec/factories/resource_weight_events.rb

8 lines
171 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :resource_weight_event do
issue { create(:issue) }
user { issue&.author || create(:user) }
end
end