mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Add admin user factory
This commit is contained in:
parent
4ae4c28d97
commit
e6cd5f66c8
1 changed files with 10 additions and 0 deletions
10
spec/factories/admin_user.rb
Normal file
10
spec/factories/admin_user.rb
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
FactoryGirl.define do
|
||||||
|
factory :admin_user do
|
||||||
|
username 'test'
|
||||||
|
email 'test@test.com'
|
||||||
|
password 'a' * AdminUser.min_password_length
|
||||||
|
password_confirmation { password }
|
||||||
|
country_code 'de'
|
||||||
|
roles ['admin']
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue