Added some missing model specs + PaperTrail session fix

This commit is contained in:
Priit Tark 2015-02-02 18:09:01 +02:00
parent c248a957a6
commit a637eb5e01
39 changed files with 1447 additions and 845 deletions

View file

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