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" }
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:url) { |n| "http://example#{n}.org" }
|
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 }
|
2017-03-23 09:08:39 -04:00
|
|
|
end
|