1 2 3 4 5 6 7 8
FactoryGirl.define do factory :email do user email { generate(:email_alias) } trait(:confirmed) { confirmed_at Time.now } end end