debian-mirror-gitlab/spec/factories/packages/dependencies.rb
2021-11-18 22:05:49 +05:30

12 lines
310 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :packages_dependency, class: 'Packages::Dependency' do
sequence(:name) { |n| "@test/package-#{n}"}
sequence(:version_pattern) { |n| "~6.2.#{n}" }
trait(:rubygems) do
sequence(:name) { |n| "gem-dependency-#{n}"}
end
end
end