debian-mirror-gitlab/spec/factories/packages/npm/metadata_cache.rb
2023-07-09 08:55:56 +05:30

10 lines
329 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 { fixture_file_upload('spec/fixtures/packages/npm/metadata.json') }
size { 401.bytes }
end
end