11 lines
267 B
Ruby
11 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :ci_build_metadata, class: 'Ci::BuildMetadata' do
|
|
build { association(:ci_build, strategy: :build, metadata: instance) }
|
|
|
|
after(:build) do |metadata|
|
|
metadata.build&.valid?
|
|
end
|
|
end
|
|
end
|