proper Grape params hash simulation
This commit is contained in:
parent
cd846ba2b5
commit
ab057bb5db
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue