debian-mirror-gitlab/spec/factories/packages/npm/metadata_cache.rb
2023-06-20 00:43:36 +05:30

10 lines
279 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :npm_metadata_cache, class: 'Packages::Npm::MetadataCache' do
project
sequence(:package_name) { |n| "@#{project.root_namespace.path}/package-#{n}" }
file { 'unnamed' }
size { 100.kilobytes }
end
end