mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 14:35:05 +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
|
||||
factory :admin_user do
|
||||
username 'test'
|
||||
password 'test'
|
||||
password_confirmation password
|
||||
sequence(:email) { |n| "test#{n}@test.com" }
|
||||
country_code 'ee'
|
||||
email 'test@test.com'
|
||||
password 'a' * AdminUser.min_password_length
|
||||
password_confirmation { password }
|
||||
country_code 'de'
|
||||
roles ['admin']
|
||||
identity_code ''
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue