Commit 94c50545 authored by miks's avatar miks

count against last project

parent e3b1f62c
......@@ -70,7 +70,7 @@ describe Gitlab::API do
expect {
put api("/projects/#{project.code}/add_users", user),
user_ids: [@user2.id, @user3.id], project_access: UsersProject::DEVELOPER
}.to change {Project.users_projects.where(:project_access => UsersProject::DEVELOPER).count}.by(2)
}.to change {Project.last.users_projects.where(:project_access => UsersProject::DEVELOPER).count}.by(2)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment