summaryrefslogtreecommitdiff
path: root/spec/factories/emails.rb
blob: d23ddf9d79b175154c13e255b002b571caca0767 (plain)
1
2
3
4
5
6
7
8
9
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