gitlab-org--gitlab-foss/spec/factories/sequences.rb
Heinrich Lee Yu 1ee8d6385d Use stub_full_request to fix spec failure
Also change test URL sequest to .test TLD
2019-08-27 19:25:22 +08:00

14 lines
544 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
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" }
sequence(:url) { |n| "http://example#{n}.test" }
sequence(:label_title) { |n| "label#{n}" }
sequence(:branch) { |n| "my-branch-#{n}" }
sequence(:past_time) { |n| 4.hours.ago + (2 * n).seconds }
end