Commit d48f2460 authored by Shinya Maeda's avatar Shinya Maeda

Add sequence to release link factory

parent 3e630f00
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment