diff options
author | Herminio Torres <herminiocesar@gmail.com> | 2016-08-04 01:35:17 -0300 |
---|---|---|
committer | Herminio Torres <herminiocesar@gmail.com> | 2016-08-04 08:55:50 -0300 |
commit | f15ed5f0a5c298a2f0eb5aaa6d848364133532a5 (patch) | |
tree | 112247869b8fedf93d717313b6398c82cc093abd /spec/models/members | |
parent | f4c79d6a84defb6ffae7d29a5c9a81fbc413f16c (diff) | |
download | gitlab-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.rb | 4 |
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 |