Add sequence to release link factory

This commit is contained in:
Shinya Maeda 2019-01-02 21:25:42 +09:00
parent 3e630f00a8
commit d48f2460af

View file

@ -3,7 +3,7 @@
FactoryBot.define do
factory :release_link, class: ::Releases::Link do
release
name "release-18.04.dmg"
url 'https://my-external-hosting.example.com/scrambled-url/app.zip'
sequence(:name) { |n| "release-18.#{n}.dmg" }
sequence(:url) { |n| "https://example.com/scrambled-url/app-#{n}.zip" }
end
end