diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-22 13:41:08 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-22 13:41:08 +0300 |
commit | 0bc714c271174137431d9194d8f1567953f97a8b (patch) | |
tree | aae8e58c7f13d5cdc86db706d5c39f797145594b /spec/models/user_spec.rb | |
parent | 19d628dd239f03e950a41c4498131f9b2a221909 (diff) | |
download | gitlab-ce-0bc714c271174137431d9194d8f1567953f97a8b.tar.gz |
Remove form for adding user to several projects from admin area.
Remove unnecessary projects order on User#show
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index f8b788a5f63..92a371ede05 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -111,12 +111,8 @@ describe User do @project_2 = create :project # Grant MASTER access to the user @project_3 = create :project # Grant DEVELOPER access to the user - UsersProject.add_users_into_projects( - [@project_2.id], [@user.id], UsersProject::MASTER - ) - UsersProject.add_users_into_projects( - [@project_3.id], [@user.id], UsersProject::DEVELOPER - ) + @project_2.team << [@user, :master] + @project_3.team << [@user, :developer] end it { @user.authorized_projects.should include(@project) } |