debian-mirror-gitlab/spec/factories/ci/resource.rb
2023-03-04 22:38:38 +05:30

12 lines
276 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :ci_resource, class: 'Ci::Resource' do
resource_group factory: :ci_resource_group
trait(:retained) do
processable factory: :ci_build
partition_id { processable.partition_id }
end
end
end