debian-mirror-gitlab/spec/factories/ci/build_metadata.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
267 B
Ruby
Raw Permalink Normal View History

2022-04-04 11:22:00 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :ci_build_metadata, class: 'Ci::BuildMetadata' do
build { association(:ci_build, strategy: :build, metadata: instance) }
2022-11-25 23:54:43 +05:30
after(:build) do |metadata|
metadata.build&.valid?
end
2022-04-04 11:22:00 +05:30
end
end