summaryrefslogtreecommitdiff
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 13:41:08 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 13:41:08 +0300
commit0bc714c271174137431d9194d8f1567953f97a8b (patch)
treeaae8e58c7f13d5cdc86db706d5c39f797145594b /spec/models/user_spec.rb
parent19d628dd239f03e950a41c4498131f9b2a221909 (diff)
downloadgitlab-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.rb8
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) }