debian-mirror-gitlab/spec/factories/packages/dependencies.rb

13 lines
312 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :packages_dependency, class: 'Packages::Dependency' do
2022-10-11 01:57:18 +05:30
sequence(:name) { |n| "@test/package-#{n}" }
2021-11-18 22:05:49 +05:30
sequence(:version_pattern) { |n| "~6.2.#{n}" }
trait(:rubygems) do
2022-10-11 01:57:18 +05:30
sequence(:name) { |n| "gem-dependency-#{n}" }
2021-11-18 22:05:49 +05:30
end
end
end