diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /spec/factories/project_group_links.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'spec/factories/project_group_links.rb')
-rw-r--r-- | spec/factories/project_group_links.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/factories/project_group_links.rb b/spec/factories/project_group_links.rb index 84c590e3ea1..5edd57d5fe1 100644 --- a/spec/factories/project_group_links.rb +++ b/spec/factories/project_group_links.rb @@ -12,8 +12,10 @@ FactoryBot.define do trait(:developer) { group_access { Gitlab::Access::DEVELOPER } } trait(:maintainer) { group_access { Gitlab::Access::MAINTAINER } } - after(:create) do |project_group_link, evaluator| - AuthorizedProjectUpdate::ProjectRecalculateService.new(project_group_link.project).execute + after(:create) do |project_group_link| + project_group_link.run_after_commit_or_now do + AuthorizedProjectUpdate::ProjectRecalculateService.new(project_group_link.project).execute + end end end end |