mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 22:45:06 +02:00
Update admin user factory
This commit is contained in:
parent
8d173afd59
commit
f4dc972795
1 changed files with 4 additions and 5 deletions
|
@ -1,11 +1,10 @@
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :admin_user do
|
factory :admin_user do
|
||||||
username 'test'
|
username 'test'
|
||||||
password 'test'
|
email 'test@test.com'
|
||||||
password_confirmation password
|
password 'a' * AdminUser.min_password_length
|
||||||
sequence(:email) { |n| "test#{n}@test.com" }
|
password_confirmation { password }
|
||||||
country_code 'ee'
|
country_code 'de'
|
||||||
roles ['admin']
|
roles ['admin']
|
||||||
identity_code ''
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue