Fixed spinach and tests. Build should pass now

This commit is contained in:
Dmitriy Zaporozhets 2012-11-23 22:55:38 +02:00
parent 0e1635a68a
commit 0693215c30
5 changed files with 23 additions and 17 deletions

View file

@ -38,7 +38,7 @@ module Gitlab
# POST /users
post do
authenticated_as_admin!
attrs = attributes_for_keys [:email, :name, :password, :skype, :linkedin, :twitter, :projects_limit]
attrs = attributes_for_keys [:email, :name, :password, :skype, :linkedin, :twitter, :projects_limit, :username]
user = User.new attrs, as: :admin
if user.save
present user, with: Entities::User