gitlab-org--gitlab-foss/spec/factories/releases/link.rb

12 lines
341 B
Ruby
Raw Normal View History

2019-01-02 06:57:13 -05:00
# frozen_string_literal: true
FactoryBot.define do
factory :release_link, class: '::Releases::Link' do
release
2019-01-02 07:25:42 -05:00
sequence(:name) { |n| "release-18.#{n}.dmg" }
sequence(:url) { |n| "https://example.com/scrambled-url/app-#{n}.zip" }
sequence(:filepath) { |n| "/binaries/awesome-app-#{n}" }
link_type { 'other' }
end
end