Commit 94c50545661c21816faf1e143739f60b1058b8e1
1 parent
e3b1f62c
Exists in
master
and in
4 other branches
count against last project
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/requests/api/projects_spec.rb
... | ... | @@ -70,7 +70,7 @@ describe Gitlab::API do |
70 | 70 | expect { |
71 | 71 | put api("/projects/#{project.code}/add_users", user), |
72 | 72 | user_ids: [@user2.id, @user3.id], project_access: UsersProject::DEVELOPER |
73 | - }.to change {Project.users_projects.where(:project_access => UsersProject::DEVELOPER).count}.by(2) | |
73 | + }.to change {Project.last.users_projects.where(:project_access => UsersProject::DEVELOPER).count}.by(2) | |
74 | 74 | end |
75 | 75 | end |
76 | 76 | ... | ... |