2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2017-08-17 22:00:37 +05:30
|
|
|
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" }
|
|
|
|
sequence(:title) { |n| "My title #{n}" }
|
|
|
|
sequence(:filename) { |n| "filename-#{n}.rb" }
|
2019-09-04 21:01:54 +05:30
|
|
|
sequence(:url) { |n| "http://example#{n}.test" }
|
2017-08-17 22:00:37 +05:30
|
|
|
sequence(:label_title) { |n| "label#{n}" }
|
|
|
|
sequence(:branch) { |n| "my-branch-#{n}" }
|
|
|
|
sequence(:past_time) { |n| 4.hours.ago + (2 * n).seconds }
|
2020-04-22 19:07:51 +05:30
|
|
|
sequence(:iid)
|
2020-05-24 23:13:21 +05:30
|
|
|
sequence(:sha) { |n| Digest::SHA1.hexdigest("commit-like-#{n}") }
|
2021-02-22 17:27:13 +05:30
|
|
|
sequence(:oid) { |n| Digest::SHA2.hexdigest("oid-like-#{n}") }
|
|
|
|
sequence(:variable) { |n| "var#{n}" }
|
|
|
|
sequence(:jira_title) { |n| "[PROJ-#{n}]: fix bug" }
|
|
|
|
sequence(:jira_branch) { |n| "feature/PROJ-#{n}" }
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|