debian-mirror-gitlab/spec/factories/releases/link.rb

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

12 lines
341 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
FactoryBot.define do
2020-03-13 15:44:24 +05:30
factory :release_link, class: '::Releases::Link' do
2019-02-15 15:39:39 +05:30
release
sequence(:name) { |n| "release-18.#{n}.dmg" }
sequence(:url) { |n| "https://example.com/scrambled-url/app-#{n}.zip" }
2020-04-08 14:13:33 +05:30
sequence(:filepath) { |n| "/binaries/awesome-app-#{n}" }
2020-06-23 00:09:42 +05:30
link_type { 'other' }
2019-02-15 15:39:39 +05:30
end
end