debian-mirror-gitlab/spec/factories/packages/npm/metadata_cache.rb

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

11 lines
329 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# 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}" }
2023-07-09 08:55:56 +05:30
file { fixture_file_upload('spec/fixtures/packages/npm/metadata.json') }
size { 401.bytes }
2023-06-20 00:43:36 +05:30
end
end