diff options
author | miks <miks@cubesystems.lv> | 2012-09-06 10:20:59 +0300 |
---|---|---|
committer | miks <miks@cubesystems.lv> | 2012-09-06 10:20:59 +0300 |
commit | ab057bb5dbf5806365d42371c968290235c555a8 (patch) | |
tree | 61c95ea872ac6e0e28f00ecbab6572631fbad21b | |
parent | cd846ba2b55cd1380febfa174d8cf82ad9e948f7 (diff) | |
download | gitlab-ce-ab057bb5dbf5806365d42371c968290235c555a8.tar.gz |
proper Grape params hash simulation
-rw-r--r-- | spec/requests/api/projects_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index b1b5966c818..125101cad18 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -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 |