diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2014-11-04 17:33:20 +0200 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2014-11-04 17:33:20 +0200 |
commit | 24276ed8366cf64e685034086b6e85d15a632d26 (patch) | |
tree | 37a94998ac885058c9db7f2863058f1af3615aab /spec/requests | |
parent | 9cf50550d7a7616cd5dba382bdd7c65473a9c95d (diff) | |
parent | 2edf212a8be3bb14b844b542df587b6029897fe6 (diff) | |
download | gitlab-ce-24276ed8366cf64e685034086b6e85d15a632d26.tar.gz |
Merge pull request #8224 from liammonahan/master
Expose projects_limit through users API if UserFull.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/users_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb index bc1598273be..3bb6191ed9f 100644 --- a/spec/requests/api/users_spec.rb +++ b/spec/requests/api/users_spec.rb @@ -433,6 +433,7 @@ describe API::API, api: true do json_response['is_admin'].should == user.is_admin? json_response['can_create_project'].should == user.can_create_project? json_response['can_create_group'].should == user.can_create_group? + json_response['projects_limit'].should == user.projects_limit end it "should return 401 error if user is unauthenticated" do |