debian-mirror-gitlab/spec/factories/emails.rb
2018-12-05 23:21:45 +05:30

9 lines
235 B
Ruby

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