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}" }
|
2021-12-08 07:13:04 -05:00
|
|
|
sequence(:name) { |n| "Sidney Jones#{n}" }
|
2017-03-23 09:08:39 -04:00
|
|
|
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)
|
2020-05-11 23:09:31 -04:00
|
|
|
sequence(:sha) { |n| Digest::SHA1.hexdigest("commit-like-#{n}") }
|
2020-12-01 07:09:17 -05:00
|
|
|
sequence(:oid) { |n| Digest::SHA2.hexdigest("oid-like-#{n}") }
|
2020-11-26 07:09:48 -05:00
|
|
|
sequence(:variable) { |n| "var#{n}" }
|
2021-02-11 07:08:52 -05:00
|
|
|
sequence(:draft_title) { |n| "Draft: #{n}" }
|
2020-12-09 16:09:43 -05:00
|
|
|
sequence(:jira_title) { |n| "[PROJ-#{n}]: fix bug" }
|
2022-03-10 16:08:21 -05:00
|
|
|
sequence(:jira_description) { |n| "This is a description\n here is the description\n Related to: PROJ-#{n}" }
|
2020-12-09 16:09:43 -05:00
|
|
|
sequence(:jira_branch) { |n| "feature/PROJ-#{n}" }
|
2021-03-23 05:09:17 -04:00
|
|
|
sequence(:job_name) { |n| "job #{n}" }
|
2021-08-02 20:10:34 -04:00
|
|
|
sequence(:work_item_type_name) { |n| "bug#{n}" }
|
2021-11-24 10:14:19 -05:00
|
|
|
sequence(:short_text) { |n| "someText#{n}" }
|
2017-03-23 09:08:39 -04:00
|
|
|
end
|