Commit ab057bb5dbf5806365d42371c968290235c555a8
1 parent
cd846ba2
Exists in
master
and in
4 other branches
proper Grape params hash simulation
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/requests/api/projects_spec.rb
... | ... | @@ -68,7 +68,7 @@ describe Gitlab::API do |
68 | 68 | it "should add users to existing project" do |
69 | 69 | expect { |
70 | 70 | put api("/projects/#{project.code}/add_users", user), |
71 | - user_ids: [user2.id, user3.id], project_access: UsersProject::DEVELOPER | |
71 | + user_ids: {"0" => user2.id, "1" => user3.id}, project_access: UsersProject::DEVELOPER | |
72 | 72 | }.to change {Project.last.users_projects.where(:project_access => UsersProject::DEVELOPER).count}.by(2) |
73 | 73 | end |
74 | 74 | end | ... | ... |