summaryrefslogtreecommitdiff
path: root/spec/models/members
diff options
context:
space:
mode:
authorHerminio Torres <herminiocesar@gmail.com>2016-08-04 01:35:17 -0300
committerHerminio Torres <herminiocesar@gmail.com>2016-08-04 08:55:50 -0300
commitf15ed5f0a5c298a2f0eb5aaa6d848364133532a5 (patch)
tree112247869b8fedf93d717313b6398c82cc093abd /spec/models/members
parentf4c79d6a84defb6ffae7d29a5c9a81fbc413f16c (diff)
downloadgitlab-ce-f15ed5f0a5c298a2f0eb5aaa6d848364133532a5.tar.gz
Fix Rename `add_users_into_project` and `projects_ids`
We never add things `into` projects, we just add them `to` projects. So how about we rename this to `add_users_to_project`. Rename `projects_ids` to `project_ids` by following the convention of rails.
Diffstat (limited to 'spec/models/members')
-rw-r--r--spec/models/members/project_member_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/members/project_member_spec.rb b/spec/models/members/project_member_spec.rb
index ba622dfb9be..e7c0c506463 100644
--- a/spec/models/members/project_member_spec.rb
+++ b/spec/models/members/project_member_spec.rb
@@ -101,7 +101,7 @@ describe ProjectMember, models: true do
end
end
- describe '.add_users_into_projects' do
+ describe '.add_users_to_projects' do
before do
@project_1 = create :project
@project_2 = create :project
@@ -109,7 +109,7 @@ describe ProjectMember, models: true do
@user_1 = create :user
@user_2 = create :user
- ProjectMember.add_users_into_projects(
+ ProjectMember.add_users_to_projects(
[@project_1.id, @project_2.id],
[@user_1.id, @user_2.id],
ProjectMember::MASTER