2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:username) { |n| "user#{n}" }
|
|
|
|
sequence(:name) { |n| "John Doe#{n}" }
|
|
|
|
sequence(:email) { |n| "user#{n}@example.org" }
|
|
|
|
sequence(:email_alias) { |n| "user.alias#{n}@example.org" }
|
2017-03-23 12:37:14 -04:00
|
|
|
sequence(:title) { |n| "My title #{n}" }
|
|
|
|
sequence(:filename) { |n| "filename-#{n}.rb" }
|
2019-08-27 05:04:27 -04:00
|
|
|
sequence(:url) { |n| "http://example#{n}.test" }
|
2017-03-24 14:12:22 -04:00
|
|
|
sequence(:label_title) { |n| "label#{n}" }
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:branch) { |n| "my-branch-#{n}" }
|
2017-03-24 14:12:22 -04:00
|
|
|
sequence(:past_time) { |n| 4.hours.ago + (2 * n).seconds }
|
2020-04-03 14:10:03 -04:00
|
|
|
sequence(:iid)
|
2017-03-23 09:08:39 -04:00
|
|
|
end
|