blob: 2802c7ec7033355151c23ecef981116b45fc890b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
FactoryGirl.define do
factory :user do
login { Faker::Internet.user_name }
password_verifier "1234ABCD"
password_salt "4321AB"
end
factory :user_with_settings, :class => User do
login { Faker::Internet.user_name }
password_verifier "1234ABCD"
password_salt "4321AB"
email_forward { Faker::Internet.email }
email_aliases_attributes do
{:a => Faker::Internet.user_name + '@' + APP_CONFIG[:domain]}
end
end
end
|