Skip to content
Snippets Groups Projects
Commit ab057bb5 authored by miks's avatar miks
Browse files

proper Grape params hash simulation

parent cd846ba2
No related branches found
No related tags found
1 merge request!1387Project users api
Loading
Loading
@@ -68,7 +68,7 @@ describe Gitlab::API do
it "should add users to existing project" do
expect {
put api("/projects/#{project.code}/add_users", user),
user_ids: [user2.id, user3.id], project_access: UsersProject::DEVELOPER
user_ids: {"0" => user2.id, "1" => user3.id}, project_access: UsersProject::DEVELOPER
}.to change {Project.last.users_projects.where(:project_access => UsersProject::DEVELOPER).count}.by(2)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment