Welcome to mirror list, hosted at ThFree Co, Russian Federation.

emails.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e51c3358a9b2dc73ba6cb9e9932af4cef894e874 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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