count against last project

This commit is contained in:
miks 2012-09-06 01:06:02 +03:00
parent e3b1f62c6b
commit 94c5054566

View file

@ -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