2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-02-16 22:55:24 -05:00
|
|
|
factory :email do
|
|
|
|
user
|
2017-03-23 09:08:39 -04:00
|
|
|
email { generate(:email_alias) }
|
2017-09-11 13:12:57 -04:00
|
|
|
|
2018-09-20 13:02:36 -04:00
|
|
|
trait(:confirmed) { confirmed_at { Time.now } }
|
2018-09-14 05:52:09 -04:00
|
|
|
trait(:skip_validate) { to_create {|instance| instance.save(validate: false) } }
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|
|
|
|
end
|