debian-mirror-gitlab/spec/factories/packages/conan/file_metadata.rb

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

21 lines
645 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :conan_file_metadatum, class: 'Packages::Conan::FileMetadatum' do
package_file { association(:conan_package_file, :conan_recipe_file, without_loaded_metadatum: true) }
recipe_revision { '0' }
conan_file_type { 'recipe_file' }
trait(:recipe_file) do
conan_file_type { 'recipe_file' }
end
trait(:package_file) do
package_file { association(:conan_package_file, :conan_package, without_loaded_metadatum: true) }
conan_file_type { 'package_file' }
package_revision { '0' }
conan_package_reference { '123456789' }
end
end
end