internetee-registry/spec/fabricators/api_user_fabricator.rb
2015-03-24 16:15:41 +02:00

13 lines
321 B
Ruby

# default fabricator should be reusable
Fabricator(:api_user) do
username { sequence(:username) { |i| "username#{i}" } }
password 'ghyt9e4fu'
identity_code '14212128025'
registrar
active true
end
# use dedicated fabricator for fixed one
Fabricator(:gitlab_api_user, from: :api_user) do
username 'gitlab'
end