diff options
author | Izaak Alpert <ialpert@blackberry.com> | 2013-08-15 17:43:46 -0400 |
---|---|---|
committer | Izaak Alpert <ialpert@blackberry.com> | 2013-09-11 14:04:15 -0400 |
commit | 5dae40f579f66fdc060de633b183ede7bd8b2ce4 (patch) | |
tree | f4f6669cb1e4d035eb89de116fb3d9ab1f596136 /spec/requests | |
parent | d4d4a78f834b409631b012aa555c0cb2c4e3166d (diff) | |
download | gitlab-ce-5dae40f579f66fdc060de633b183ede7bd8b2ce4.tar.gz |
Update to only provide one way to get a default user
-calling build_user will now apply defaults and only override them if as: :admin is set
Change-Id: Id1d938c0967752ecc14370af54f2d88128d18c44
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/users_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb index c09d78993e1..e42c0567ef6 100644 --- a/spec/requests/api/users_spec.rb +++ b/spec/requests/api/users_spec.rb @@ -64,7 +64,9 @@ describe API::API do expect { post api("/users", admin), attr }.to change { User.count }.by(1) - User.find_by_username(attr[:username]).projects_limit.should == limit + user = User.find_by_username(attr[:username]) + user.projects_limit.should == limit + user.theme_id.should == Gitlab::Theme::BASIC Gitlab.config.gitlab.unstub(:default_projects_limit) end |