internetee-registry/spec/factories/api_user.rb
2016-12-13 08:12:53 +02:00

12 lines
229 B
Ruby

FactoryGirl.define do
factory :api_user do
sequence(:username) { |n| "test#{n}" }
password 'a' * 6
roles ['super']
registrar
factory :api_user_epp do
roles %w(epp static_registrant)
end
end
end