discourse/spec/fabricators/user_email_fabricator.rb

10 lines
237 B
Ruby
Raw Normal View History

Fabricator(:user_email) do
email { sequence(:email) { |i| "bruce#{i}@wayne.com" } }
primary true
end
2018-07-03 19:51:22 +08:00
Fabricator(:secondary_email, from: :user_email) do
email { sequence(:email) { |i| "bwayne#{i}@wayne.com" } }
primary false
end