mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Add api user factory
This commit is contained in:
parent
333924fdc6
commit
3cf689d96c
1 changed files with 8 additions and 0 deletions
8
spec/factories/api_user.rb
Normal file
8
spec/factories/api_user.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
FactoryGirl.define do
|
||||
factory :api_user do
|
||||
sequence(:username) { |n| "test#{n}" }
|
||||
password 'a' * 6
|
||||
roles ['super']
|
||||
registrar
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue