debian-mirror-gitlab/spec/factories/ci/build_metadata.rb
2022-11-25 23:54:43 +05:30

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