Welcome to mirror list, hosted at ThFree Co, Russian Federation.

metadata_cache.rb « npm « packages « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e76ddf3c9830f069391b6c0124878c5f18b160db (plain)
1
2
3
4
5
6
7
8
9
10
# 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