Add api user factory

This commit is contained in:
Artur Beljajev 2016-11-29 00:10:32 +02:00
parent 333924fdc6
commit 3cf689d96c

View 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