discourse/spec/fabricators/user_email_fabricator.rb
2018-07-16 11:09:49 +08:00

10 lines
237 B
Ruby

Fabricator(:user_email) do
email { sequence(:email) { |i| "bruce#{i}@wayne.com" } }
primary true
end
Fabricator(:secondary_email, from: :user_email) do
email { sequence(:email) { |i| "bwayne#{i}@wayne.com" } }
primary false
end