gitlab-org--gitlab-foss/spec/factories/emails.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
268 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :email do
user
email { generate(:email_alias) }
trait(:confirmed) { confirmed_at { Time.now } }
trait(:skip_validate) { to_create { |instance| instance.save!(validate: false) } }
end
end