debian-mirror-gitlab/spec/factories/emails.rb
2022-10-11 01:57:18 +05:30

11 lines
268 B
Ruby

# 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