mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Add api user factory
This commit is contained in:
parent
6071c58106
commit
19f3d1b5e0
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